Merge "Allow tests to run with both provenances of mox"
This commit is contained in:
commit
0059c1d8aa
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user