Add VerifyAll to test methods using mox.

Missed this comment in an earlier review.

Change-Id: If9737a03ba003331d0e20288e3bbc09002c6dbdb
This commit is contained in:
Randall Burt 2013-06-19 20:38:38 -05:00
parent 6d7c84dbff
commit 0782eb1ba6

View File

@ -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"