Add KeyError assert to test_repository.
Change-Id: Ifd29be456c61fdd476a3298b1ead110283d2424e
This commit is contained in:
parent
520556e552
commit
673a045a30
@ -44,6 +44,7 @@ class RepositoryTest(utils.TestRepoTestCase):
|
||||
def test_read(self):
|
||||
self.assertRaises(TypeError, self.repo.read, 123)
|
||||
self.assertRaises(ValueError, self.repo.read, A_BIN_SHA)
|
||||
self.assertRaisesWithArg(KeyError, '1' * 40, self.repo.read, '1' * 40)
|
||||
|
||||
a = self.repo.read(A_HEX_SHA)
|
||||
self.assertEqual((pygit2.GIT_OBJ_BLOB, 'a contents\n'), a)
|
||||
|
Loading…
x
Reference in New Issue
Block a user