Add a test for the sha of a commit.

This commit is contained in:
John Szakmeister 2011-02-26 16:14:14 -05:00
parent 83a78dac5f
commit 3b403247d1

@ -41,6 +41,7 @@ class CommitTest(utils.BareRepoTestCase):
def test_read_commit(self):
commit = self.repo[COMMIT_SHA]
self.assertEqual(COMMIT_SHA, commit.sha)
self.assertEqual('Second test data commit.', commit.message_short)
self.assertEqual(('Second test data commit.\n\n'
'This commit has some additional text.\n'),