No need to save original_setcontents in fakeOn - it's already done in setUp.

parent a255a329
...@@ -89,7 +89,6 @@ class TestRemoteFileBuffer(unittest.TestCase, FSTestCases, ThreadingTestCases): ...@@ -89,7 +89,6 @@ class TestRemoteFileBuffer(unittest.TestCase, FSTestCases, ThreadingTestCases):
Turn on fake_setcontents(). When setcontents on RemoteTempFS Turn on fake_setcontents(). When setcontents on RemoteTempFS
is called, FakeException is raised and nothing is stored. is called, FakeException is raised and nothing is stored.
''' '''
self.original_setcontents = self.fs.setcontents
self.fs.setcontents = self.fake_setcontents self.fs.setcontents = self.fake_setcontents
def fakeOff(self): def fakeOff(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment