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.create_port import CreatePort
15 class CreatePortTestCase(unittest.TestCase):
17 @mock.patch('yardstick.common.openstack_utils.get_neutron_client')
18 def test_create_port(self, mock_get_neutron_client):
21 'name': 'yardstick_port'
24 args = {"options": options}
25 obj = CreatePort(args, {})
27 self.assertTrue(mock_get_neutron_client.called)
34 if __name__ == '__main__':