summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r--test/git/test_commit.py7
1 files changed, 7 insertions, 0 deletions
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('<git.Commit "abc">', 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)