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_flavor import CreateFlavor
15 class CreateFlavorTestCase(unittest.TestCase):
17 @mock.patch('yardstick.common.openstack_utils.create_flavor')
18 def test_create_flavor(self, mock_create_flavor):
20 'flavor_name': 'yardstick_test_flavor',
26 args = {"options": options}
27 obj = CreateFlavor(args, {})
29 mock_create_flavor.assert_called_once()