Add VerifyAll to test methods using mox.
Missed this comment in an earlier review. Change-Id: If9737a03ba003331d0e20288e3bbc09002c6dbdb
This commit is contained in:
parent
6d7c84dbff
commit
0782eb1ba6
@ -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…
Reference in New Issue
Block a user