Add a test for the sha of a commit.
This commit is contained in:
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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user