summaryrefslogtreecommitdiff
path: root/mox3/tests/test_stubout.py
diff options
context:
space:
mode:
Diffstat (limited to 'mox3/tests/test_stubout.py')
-rw-r--r--mox3/tests/test_stubout.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/mox3/tests/test_stubout.py b/mox3/tests/test_stubout.py
index be9a94c..e729d34 100644
--- a/mox3/tests/test_stubout.py
+++ b/mox3/tests/test_stubout.py
@@ -23,26 +23,26 @@ from . import stubout_helper
class StubOutForTestingTest(unittest.TestCase):
- def setUp(self):
- self.mox = mox.Mox()
- self.sample_function_backup = stubout_helper.SampleFunction
+ def setUp(self):
+ self.mox = mox.Mox()
+ self.sample_function_backup = stubout_helper.SampleFunction
- def tearDown(self):
- stubout_helper.SampleFunction = self.sample_function_backup
+ def tearDown(self):
+ stubout_helper.SampleFunction = self.sample_function_backup
- def testSmartSetOnModule(self):
- mock_function = self.mox.CreateMockAnything()
- mock_function()
+ def testSmartSetOnModule(self):
+ mock_function = self.mox.CreateMockAnything()
+ mock_function()
- stubber = stubout.StubOutForTesting()
- stubber.SmartSet(stubout_helper, 'SampleFunction', mock_function)
+ stubber = stubout.StubOutForTesting()
+ stubber.SmartSet(stubout_helper, 'SampleFunction', mock_function)
- self.mox.ReplayAll()
+ self.mox.ReplayAll()
- stubout_helper.SampleFunction()
+ stubout_helper.SampleFunction()
- self.mox.VerifyAll()
+ self.mox.VerifyAll()
if __name__ == '__main__':
- unittest.main()
+ unittest.main()