1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 from yardstick.benchmark.scenarios.lib.attach_volume import AttachVolume
15 class AttachVolumeTestCase(unittest.TestCase):
17 @mock.patch('yardstick.common.openstack_utils.attach_server_volume')
18 def test_attach_volume(self, mock_attach_server_volume):
20 'volume_id': '123-456-000',
21 'server_id': '000-123-456'
23 args = {"options": options}
24 obj = AttachVolume(args, {})
26 mock_attach_server_volume.assert_called_once()