diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-23 23:44:49 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-24 00:06:55 +0200 |
commit | b999cae064fb6ac11a61a39856e074341baeefde (patch) | |
tree | 853234aec20b28092832e346a958a422ff68deb2 /test/git/test_actor.py | |
parent | 0cd09bd306486028f5442c56ef2e947355a06282 (diff) | |
download | gitpython-b999cae064fb6ac11a61a39856e074341baeefde.tar.gz |
actor: added __eq__, __ne__ and __hash__ methods including simple test
commit: Fixed long-standing issue during message parsing that would fail to parse properly in case we were created from data. Also it would strip white space from the messages although it shouldn't
Diffstat (limited to 'test/git/test_actor.py')
-rw-r--r-- | test/git/test_actor.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/git/test_actor.py b/test/git/test_actor.py index b7c2af7c..2941468d 100644 --- a/test/git/test_actor.py +++ b/test/git/test_actor.py @@ -13,6 +13,14 @@ class TestActor(object): a = Actor._from_string("Michael Trier <mtrier@example.com>") assert_equal("Michael Trier", a.name) assert_equal("mtrier@example.com", a.email) + + # base type capabilities + assert a == a + assert not ( a != a ) + m = set() + m.add(a) + m.add(a) + assert len(m) == 1 def test_from_string_should_handle_just_name(self): a = Actor._from_string("Michael Trier") |