diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2010-06-20 12:49:20 -0300 |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2010-06-20 12:49:20 -0300 |
commit | f7ee6d1b32656d7143b9b02ce1afe0f7fa56dde9 (patch) | |
tree | 29543dd47697326df8b111f17f267f2dae1228ca /mocker.py | |
parent | 16f4771d2442b0438e7b245662f9f66e66790d72 (diff) | |
download | mocker-f7ee6d1b32656d7143b9b02ce1afe0f7fa56dde9.tar.gz |
Use the more reliable expect() automatically with MockerTestCase.
Diffstat (limited to 'mocker.py')
-rw-r--r-- | mocker.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -134,8 +134,6 @@ class MockerTestCase(unittest.TestCase): a few additional helper methods. """ - expect = expect - def __init__(self, methodName="runTest"): # So here is the trick: we take the real test method, wrap it on # a function that do the job we have to do, and insert it in the @@ -184,6 +182,7 @@ class MockerTestCase(unittest.TestCase): self.run = run_wrapper self.mocker = Mocker() + self.expect = Expect(self.mocker) self.__cleanup_funcs = [] self.__cleanup_paths = [] |