Lines Matching defs:MockObject
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):
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 does not mock the
663 return (isinstance(rhs, MockObject) and
835 return super(MockObject, self).__getattribute__("_class_to_mock")
837 return super(MockObject, self).__getattribute__(name)
840 class _MockObjectFactory(MockObject):
854 MockObject.__init__(self, class_to_mock)