Given that resource creation can happen in parallel, the call to
check_create_complete may not follow the call to handle_create, so mock
those without checking the order.
Change-Id: Icf40f7339dc4c6e885c4a42f3a2c3f546f14c08d
self.m.StubOutWithMock(instance.Instance, 'check_create_complete')
for cookie in (object(), object()):
instance.Instance.handle_create().AndReturn(cookie)
- instance.Instance.check_create_complete(cookie).AndReturn(True)
+ create_complete = instance.Instance.check_create_complete(cookie)
+ create_complete.InAnyOrder().AndReturn(True)
self.m.StubOutWithMock(instance.Instance, 'FnGetAtt')
return stack