diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-23 21:14:59 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-23 21:14:59 +0100 |
commit | a21a9f6f13861ddc65671b278e93cf0984adaa30 (patch) | |
tree | 67e30aa7a870bedc238ea6eed0e991dc1a80083a /test/test_util.py | |
parent | 5bd7d44ff7e51105e3e277aee109a45c42590572 (diff) | |
download | gitpython-a21a9f6f13861ddc65671b278e93cf0984adaa30.tar.gz |
Actor: Moved it from git.objects.util to git.util, adjusted all imports accordingly. Added methods to Actor to retrieve the global committer and author information
Reflog: implemented and tested append_entry method
Diffstat (limited to 'test/test_util.py')
-rw-r--r-- | test/test_util.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_util.py b/test/test_util.py index 7a6eb27d..e55a6d15 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -16,7 +16,7 @@ from git.cmd import dashify import time -class TestUtils(TestCase): +class TestUtils(TestBase): def setup(self): self.testdict = { "string": "42", @@ -102,4 +102,8 @@ class TestUtils(TestCase): self.failUnlessRaises(ValueError, parse_date, '123456789 -02000') self.failUnlessRaises(ValueError, parse_date, ' 123456789 -0200') - + def test_actor(self): + for cr in (None, self.rorepo.config_reader()): + assert isinstance(Actor.committer(cr), Actor) + assert isinstance(Actor.author(cr), Actor) + #END assure config reader is handled |