diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-24 19:48:44 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-24 19:48:44 +0100 |
commit | 3203cd7629345d32806f470a308975076b2b4686 (patch) | |
tree | f1a098c4b38ae3b7cf52600e9fc9c357cdd7c353 /test/test_reflog.py | |
parent | 98a313305f0d554a179b93695d333199feb5266c (diff) | |
download | gitpython-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.py | 3 |
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) |