Merge "Add functional test for "aggregate unset" command"

This commit is contained in:
Jenkins 2016-06-16 12:57:29 +00:00 committed by Gerrit Code Review
commit 3236d6f66b
1 changed files with 8 additions and 0 deletions

View File

@ -57,3 +57,11 @@ class AggregateTests(test.TestCase):
raw_output = self.openstack('aggregate show ' + self.NAME + opts)
self.assertIn("a='b', c='d'\n", raw_output)
raw_output = self.openstack(
'aggregate unset --property a ' + self.NAME
)
self.assertEqual('', raw_output)
raw_output = self.openstack('aggregate show ' + self.NAME + opts)
self.assertIn("c='d'\n", raw_output)