From f37eda3a27dc88d3186d21eca328cca086ee3647 Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Wed, 17 Feb 2016 10:07:50 +0800 Subject: Make SetFlavor and UnsetFlavor inherit from cliff.Command set/unset comamnd classes should inherit from cliff.Command class. Change-Id: I54e5608ac0768d7d94b7f7d516ea1948daefdc1b Partial-Bug: 1546065 --- functional/tests/compute/v2/test_flavor.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'functional/tests/compute') 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) -- cgit v1.2.1