2 parents 541ec43 + 83f5bef commit 1a45b20Copy full SHA for 1a45b20
1 file changed
functional/tests/compute/v2/test_flavor.py
@@ -44,3 +44,13 @@ def test_flavor_show(self):
44
opts = self.get_show_opts(self.FIELDS)
45
raw_output = self.openstack('flavor show ' + self.NAME + opts)
46
self.assertEqual(self.NAME + "\n", raw_output)
47
+
48
+ def test_flavor_properties(self):
49
+ opts = self.get_show_opts(["properties"])
50
+ raw_output = self.openstack(
51
+ 'flavor set --property a=b --property c=d ' + self.NAME + opts)
52
+ self.assertEqual("a='b', c='d'\n", raw_output)
53
54
+ raw_output = self.openstack('flavor unset --property a ' +
55
+ self.NAME + opts)
56
+ self.assertEqual("c='d'\n", raw_output)
0 commit comments