summaryrefslogtreecommitdiff
path: root/openstackclient/tests/compute/v2/fakes.py
diff options
context:
space:
mode:
authorHuanxuan Ao <huanxuan.ao@easystack.cn>2016-05-04 18:55:49 +0800
committerHuanxuan Ao <huanxuan.ao@easystack.cn>2016-05-04 18:55:49 +0800
commit68224eafc3967fcb843eae0cd6e2b67d46821018 (patch)
treeea0ba261ad6c4339647c1c74ba4ecea14689625e /openstackclient/tests/compute/v2/fakes.py
parentf1d14de6da5d0f61e34f9e6841e965439c85d629 (diff)
downloadpython-openstackclient-68224eafc3967fcb843eae0cd6e2b67d46821018.tar.gz
Add a unit test for "flavor create" command
There was not a unit test for "flavor create" command in the "test_flavor.py".So I add the unit test. Change-Id: Ib1e821ea524eb33c0ba73643164228c7b83253b4
Diffstat (limited to 'openstackclient/tests/compute/v2/fakes.py')
-rw-r--r--openstackclient/tests/compute/v2/fakes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/tests/compute/v2/fakes.py b/openstackclient/tests/compute/v2/fakes.py
index 948d9e97..23957738 100644
--- a/openstackclient/tests/compute/v2/fakes.py
+++ b/openstackclient/tests/compute/v2/fakes.py
@@ -543,8 +543,8 @@ class FakeFlavor(object):
'ram': 8192,
'vcpus': 4,
'disk': 128,
- 'swap': '',
- 'rxtx_factor': '1.0',
+ 'swap': 0,
+ 'rxtx_factor': 1.0,
'OS-FLV-DISABLED:disabled': False,
'os-flavor-access:is_public': True,
'OS-FLV-EXT-DATA:ephemeral': 0,