From: Randall Burt Date: Thu, 20 Jun 2013 01:38:38 +0000 (-0500) Subject: Add VerifyAll to test methods using mox. X-Git-Tag: 2014.1~448^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0782eb1ba668f63e0a9795c0ca428da70adc32d1;p=openstack-build%2Fheat-build.git Add VerifyAll to test methods using mox. Missed this comment in an earlier review. Change-Id: If9737a03ba003331d0e20288e3bbc09002c6dbdb --- diff --git a/heat/tests/test_attributes.py b/heat/tests/test_attributes.py index a1e3ca88..fde4fd12 100644 --- a/heat/tests/test_attributes.py +++ b/heat/tests/test_attributes.py @@ -45,6 +45,7 @@ class AttributeTest(common.HeatTestCase): "Unexpected attribute value") self.assertIsNone(test_attr.value, "Second attrib value should be None") + self.m.VerifyAll() def test_as_output(self): """Test that Attribute looks right when viewed as an Output.""" @@ -71,6 +72,10 @@ class AttributesTest(common.HeatTestCase): "test3": "Test attrib 3" } + def setUp(self): + super(AttributesTest, self).setUp() + self.addCleanup(self.m.VerifyAll) + def test_get_attribute(self): """Test that we get the attribute values we expect.""" test_resolver = lambda x: "value1"