Add VerifyAll to test methods using mox.

Missed this comment in an earlier review.

Change-Id: If9737a03ba003331d0e20288e3bbc09002c6dbdb
changes/41/33741/2
Randall Burt 9 years ago
parent 6d7c84dbff
commit 0782eb1ba6
  1. 5
      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"

Loading…
Cancel
Save