Fix tests for ServerContraint

The test case for ServerConstraint was using the wrong parent class,
since it was not using anything from its setUp.
This small improvement avoids creating unnecessary mocks and stubs
by using the HeatTestCase as parent directly.

Change-Id: I8a34967e76c82d2c7755b0c0fe83038071e1b0f7
This commit is contained in:
Pavlo Shchelokovskyy 2015-01-30 12:53:09 +00:00
parent beb393e56c
commit cbfc8382ef
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ class NovaUtilsMetadataTests(NovaClientPluginTestCase):
self.assertEqual(expected, self.nova_plugin.meta_serialize(original))
class ServerConstraintTest(NovaClientPluginTestCase):
class ServerConstraintTest(common.HeatTestCase):
def setUp(self):
super(ServerConstraintTest, self).setUp()