From 3410fdc42075bd788a78f4b2a68c5e2cc0930409 Mon Sep 17 00:00:00 2001 From: Jon Nordby Date: Sun, 28 Jun 2009 14:17:19 +0200 Subject: implemented equality operations on Commit objects --- test/git/test_commit.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/git/test_commit.py') diff --git a/test/git/test_commit.py b/test/git/test_commit.py index 3e37a7a4..e63edbcf 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -236,3 +236,10 @@ class TestCommit(object): def test_repr(self): commit = Commit(self.repo, id='abc') assert_equal('', repr(commit)) + + def test_equality(self): + commit1 = Commit(self.repo, id='abc') + commit2 = Commit(self.repo, id='abc') + commit3 = Commit(self.repo, id='zyx') + assert_equal(commit1, commit2) + assert_not_equal(commit2, commit3) -- cgit v1.2.1