summaryrefslogtreecommitdiff
path: root/summainlib_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-11 19:50:23 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-11 19:50:23 +0100
commit6dee09fe1b6bf92ae8bd190edc014df84fea19cb (patch)
tree15915ef0c0b168e95659f0f6338964915eaac6fb /summainlib_tests.py
parent7fcf5e9d351868f0af460d6a2fe619ece5c3e5c8 (diff)
downloadsummain-6dee09fe1b6bf92ae8bd190edc014df84fea19cb.tar.gz
Refactor things so that checksumming happens in one place only.
DRY.
Diffstat (limited to 'summainlib_tests.py')
-rw-r--r--summainlib_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/summainlib_tests.py b/summainlib_tests.py
index 76134c5..7f8c45a 100644
--- a/summainlib_tests.py
+++ b/summainlib_tests.py
@@ -50,6 +50,12 @@ class FakeOpenFile(object):
def close(self):
pass
+ def __enter__(self):
+ return self
+
+ def __exit__(self, a, b, c):
+ pass
+
class FakeReadlink(object):