diff options
| author | Tang Chen <chen.tang@easystack.cn> | 2016-02-17 10:07:50 +0800 |
|---|---|---|
| committer | Tang Chen <chen.tang@easystack.cn> | 2016-02-27 03:46:30 +0800 |
| commit | f37eda3a27dc88d3186d21eca328cca086ee3647 (patch) | |
| tree | 141e4e197b367dcc23af2ab4e4ba5aa3dc99c46f /functional | |
| parent | b5b5fdd78ad0d191bdf07a56293fecaa43002e75 (diff) | |
| download | python-openstackclient-f37eda3a27dc88d3186d21eca328cca086ee3647.tar.gz | |
Make SetFlavor and UnsetFlavor inherit from cliff.Command
set/unset comamnd classes should inherit from cliff.Command class.
Change-Id: I54e5608ac0768d7d94b7f7d516ea1948daefdc1b
Partial-Bug: 1546065
Diffstat (limited to 'functional')
| -rw-r--r-- | functional/tests/compute/v2/test_flavor.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/functional/tests/compute/v2/test_flavor.py b/functional/tests/compute/v2/test_flavor.py index becf217f..d1f5f95d 100644 --- a/functional/tests/compute/v2/test_flavor.py +++ b/functional/tests/compute/v2/test_flavor.py @@ -46,11 +46,20 @@ class FlavorTests(test.TestCase): self.assertEqual(self.NAME + "\n", raw_output) def test_flavor_properties(self): - opts = self.get_show_opts(["properties"]) + opts = self.get_show_opts(['properties']) + raw_output = self.openstack( - 'flavor set --property a=b --property c=d ' + self.NAME + opts) + 'flavor set --property a=b --property c=d ' + self.NAME + ) + self.assertEqual('', raw_output) + + raw_output = self.openstack('flavor show ' + self.NAME + opts) self.assertEqual("a='b', c='d'\n", raw_output) - raw_output = self.openstack('flavor unset --property a ' + - self.NAME + opts) + raw_output = self.openstack( + 'flavor unset --property a ' + self.NAME + ) + self.assertEqual('', raw_output) + + raw_output = self.openstack('flavor show ' + self.NAME + opts) self.assertEqual("c='d'\n", raw_output) |
