summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorThomas Hervé <thomas@canonical.com>2008-06-30 17:38:09 +0200
committerThomas Hervé <thomas@canonical.com>2008-06-30 17:38:09 +0200
commit77375c5cf3c1f47006322c7c693a3fda9ac383d6 (patch)
treecddad95ec8224ad6e09a89de32911a057921347c /test.py
parent87e6cf304120f11ff7f163f1a98291682c34b988 (diff)
downloadmocker-77375c5cf3c1f47006322c7c693a3fda9ac383d6.tar.gz
Use the version that passes the landscape tests. Add a test for one of the fix.
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test.py b/test.py
index 334407f..9ce5c01 100755
--- a/test.py
+++ b/test.py
@@ -3920,6 +3920,8 @@ class PatcherTest(TestCase):
self.mocker.replay()
self.assertEquals(self.C().method(), "mocked")
self.assertRaises(AssertionError, self.C().method)
+ self.mocker.restore()
+ self.assertEquals(getattr(self.C, "__mocker_mock__", None), None)
def test_recorder_instance_getattr(self):
self.C.attr = "original"