Searched defs:MockObject (Results 1 - 3 of 3) sorted by relevance
/external/chromium-trace/catapult/telemetry/telemetry/testing/ |
H A D | simple_mock.py | 54 class MockObject(object): class in inherits:object 66 assert isinstance(value, MockObject)
|
/external/protobuf/python/ |
H A D | mox.py | 172 MockObject that can be used as the class_to_mock would be. 175 new_mock = MockObject(class_to_mock) 211 This will replace a class or module with a MockObject, and everything else 359 class MockObject(MockAnything, object): class in inherits:MockAnything, object 395 MockObject's state (record or replay). The call will be recorded 407 UnknownMethodCallError if the MockObject does not mock the requested 422 return (isinstance(rhs, MockObject) and
|
/external/chromium-trace/catapult/telemetry/third_party/mox3/mox3/ |
H A D | mox.py | 166 """Raised if a MockObject is passed a private additional attribute name.""" 257 MockObject that can be used as the class_to_mock would be. 261 new_mock = MockObject(class_to_mock, attrs=attrs, 300 This will replace a class or module with a MockObject, and everything 320 if attr_type == MockAnything or attr_type == MockObject: 378 if attr_type == MockAnything or attr_type == MockObject: 555 class MockObject(MockAnything): class in inherits:MockAnything 623 return super(MockObject, self)._CreateMockMethod(*args, **kwargs) 634 MockObject's state (record or replay). The call will be recorded 646 UnknownMethodCallError if the MockObject doe [all...] |
Completed in 121 milliseconds