summaryrefslogtreecommitdiff
path: root/test/test_reflog.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-24 19:48:44 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-24 19:48:44 +0100
commit3203cd7629345d32806f470a308975076b2b4686 (patch)
treef1a098c4b38ae3b7cf52600e9fc9c357cdd7c353 /test/test_reflog.py
parent98a313305f0d554a179b93695d333199feb5266c (diff)
downloadgitpython-3203cd7629345d32806f470a308975076b2b4686.tar.gz
Fixed doc strings, improved error checking on RefLog.write method
Diffstat (limited to 'test/test_reflog.py')
-rw-r--r--test/test_reflog.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_reflog.py b/test/test_reflog.py
index 5c4a21b8..3fdf1fae 100644
--- a/test/test_reflog.py
+++ b/test/test_reflog.py
@@ -56,6 +56,8 @@ class TestRefLog(TestBase):
self.failUnlessRaises(ValueError, RefLog.from_file, fixture_path(pp+suffix))
#END for each invalid file
+ # cannot write an uninitialized reflog
+ self.failUnlessRaises(ValueError, RefLog().write)
# test serialize and deserialize - results must match exactly
binsha = chr(255)*20
@@ -65,6 +67,7 @@ class TestRefLog(TestBase):
reflog = RefLog.from_file(rlp)
tfile = os.path.join(tdir, os.path.basename(rlp))
reflog.to_file(tfile)
+ assert reflog.write() is reflog
# parsed result must match ...
treflog = RefLog.from_file(tfile)