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:
parent
beb393e56c
commit
cbfc8382ef
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue