Merge "Allow tests to run with both provenances of mox"

This commit is contained in:
Jenkins 2013-10-09 04:32:00 +00:00 committed by Gerrit Code Review
commit 0059c1d8aa

View File

@ -835,7 +835,7 @@ class TestStoreAddToBackend(utils.BaseTestCase):
store = self.mox.CreateMockAnything()
store.add(self.image_id, mox.IgnoreArg(), self.size).AndReturn(
(self.location, self.size, self.checksum, in_metadata))
store.__str__().AndReturn(('hello'))
store.__str__ = lambda: "hello"
self.mox.ReplayAll()
@ -910,7 +910,7 @@ class TestStoreAddToBackend(utils.BaseTestCase):
store = self.mox.CreateMockAnything()
store.add(self.image_id, mox.IgnoreArg(), self.size).AndReturn(
(self.location, self.size, self.checksum, []))
store.__str__().AndReturn(('hello'))
store.__str__ = lambda: "hello"
self.mox.ReplayAll()