Public Member Functions | |
def | __eq__ (self, rhs) |
def | __getattr__ (self, method_name) |
def | __init__ (self) |
def | __ne__ (self, rhs) |
def | __nonzero__ (self) |
Private Member Functions | |
def | _CreateMockMethod (self, method_name) |
def | _Replay (self) |
def | _Reset (self) |
def | _Verify (self) |
Private Attributes | |
_expected_calls_queue | |
_replay_mode | |
A mock that can be used to mock anything. This is helpful for mocking classes that do not provide a public interface.
def mox.MockAnything.__eq__ | ( | self, | |
rhs | |||
) |
Provide custom logic to compare objects.
Reimplemented in mox.MockObject.
def mox.MockAnything.__getattr__ | ( | self, | |
method_name | |||
) |
Intercept method calls on this object. A new MockMethod is returned that is aware of the MockAnything's state (record or replay). The call will be recorded or replayed by the MockMethod's __call__. Args: # method name: the name of the method being called. method_name: str Returns: A new MockMethod aware of MockAnything's state (record or replay).
Reimplemented in mox.MockObject.
def mox.MockAnything.__ne__ | ( | self, | |
rhs | |||
) |
def mox.MockAnything.__nonzero__ | ( | self | ) |
|
private |
|
private |
|
private |
|
private |