diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-11 19:50:23 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-11 19:50:23 +0100 |
commit | 6dee09fe1b6bf92ae8bd190edc014df84fea19cb (patch) | |
tree | 15915ef0c0b168e95659f0f6338964915eaac6fb /summainlib_tests.py | |
parent | 7fcf5e9d351868f0af460d6a2fe619ece5c3e5c8 (diff) | |
download | summain-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.py | 6 |
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): |