From cbfc8382ef77332417134c26c4d84bb6f374524a Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Fri, 30 Jan 2015 12:53:09 +0000 Subject: [PATCH] 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 --- heat/tests/test_nova_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/tests/test_nova_client.py b/heat/tests/test_nova_client.py index 8dfab65457..5cf946f54f 100644 --- a/heat/tests/test_nova_client.py +++ b/heat/tests/test_nova_client.py @@ -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()