Lines Matching refs:MockMethod

83       # expected_methods: A sequence of MockMethod objects that should have been
85 expected_methods: [MockMethod]
113 # unexpected_method: MockMethod that was called but was not at the head of
115 # expected: MockMethod or UnorderedGroup the method should have
117 unexpected_method: MockMethod
118 expected: MockMethod or UnorderedGroup
281 A new MockMethod is returned that is aware of the MockAnything's
283 by the MockMethod's __call__.
290 A new MockMethod aware of MockAnything's state (record or replay).
303 A new MockMethod aware of MockAnything's state (record or replay).
306 return MockMethod(method_name, self._expected_calls_queue,
394 methods, and a new MockMethod is returned that is aware of the
396 or replayed by the MockMethod's __call__.
403 Either a class variable or a new MockMethod that is aware of the state
435 Expected return value in replay mode. A MockMethod object for the
452 return MockMethod('__setitem__', self._expected_calls_queue,
466 Expected return value in replay mode. A MockMethod object for the
483 return MockMethod('__getitem__', self._expected_calls_queue,
510 class MockMethod(object):
513 A MockMethod should act exactly like the method it mocks, accepting parameters
549 this MockMethod will be pushed onto the expected call queue. If the mock
550 is in replay mode, this will pop a MockMethod off the top of the queue and
578 raise AttributeError('MockMethod has no attribute "%s". '
623 """Test whether this MockMethod is equivalent to another MockMethod.
627 rhs: MockMethod
630 return (isinstance(rhs, MockMethod) and
636 """Test whether this MockMethod is not equivalent to another MockMethod.
640 rhs: MockMethod