summaryrefslogtreecommitdiff
path: root/mox.py
diff options
context:
space:
mode:
Diffstat (limited to 'mox.py')
-rwxr-xr-xmox.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mox.py b/mox.py
index 23348fd..09dafa3 100755
--- a/mox.py
+++ b/mox.py
@@ -273,6 +273,12 @@ class MockAnything:
""" """
self._Reset()
+ def __str__(self):
+ return "<MockAnything instance at %s>" % id(self)
+
+ def __repr__(self):
+ return self.__str__()
+
def __getattr__(self, method_name):
"""Intercept method calls on this object.