summaryrefslogtreecommitdiff
path: root/mox_test.py
diff options
context:
space:
mode:
authorsmiddlek <smiddlek@b1010a0a-674b-0410-b734-77272b80c875>2009-05-05 22:54:33 +0000
committersmiddlek <smiddlek@b1010a0a-674b-0410-b734-77272b80c875>2009-05-05 22:54:33 +0000
commit4378dee1ef55634c9eada7528d4c0f39359ad068 (patch)
tree8cf710f95053ad40fba33d4701de16f69a8fa468 /mox_test.py
parentaeaefb32816d68478b63b3e8f84520e4cd7c3a2a (diff)
downloadpymox-4378dee1ef55634c9eada7528d4c0f39359ad068.tar.gz
Fix for Issue 3, submitted by a...@therobots.org.
Diffstat (limited to 'mox_test.py')
-rwxr-xr-xmox_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mox_test.py b/mox_test.py
index 52b5905..5519a7f 100755
--- a/mox_test.py
+++ b/mox_test.py
@@ -533,6 +533,10 @@ class MockAnythingTest(unittest.TestCase):
self.mock_object._Verify()
+ def testIsReprable(self):
+ """Test that MockAnythings can be repr'd without causing a failure."""
+ self.failUnless('MockAnything' in repr(self.mock_object))
+
class MethodCheckerTest(unittest.TestCase):
"""Tests MockMethod's use of MethodChecker method."""