Add functional test for "aggregate unset" command

There was not functional test for "aggregate unset"
command, this patch add the test.

Change-Id: Icc8f51e863231e915b2a8cca59baaedd54a96de5
This commit is contained in:
Huanxuan Ao 2016-06-16 16:41:25 +08:00
parent 114eeeb023
commit 2d4a585841
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)