Fix reference test case

Now git_reference_lookup says "foo" is an invalid reference name
(returns GITERR_REFERENCE instead of GIT_ENOTFOUND).
This commit is contained in:
J. David Ibáñez 2012-10-03 14:08:27 +02:00
parent 5251343ee7
commit ad8103bc48

@ -67,7 +67,7 @@ class ReferencesTest(utils.RepoTestCase):
repo = self.repo
# Raise KeyError ?
self.assertRaises(KeyError, repo.lookup_reference, 'foo')
self.assertRaises(KeyError, repo.lookup_reference, 'refs/foo')
# Test a lookup
reference = repo.lookup_reference('refs/heads/master')