From 916c45de7c9663806dc2cd3769a173682e5e8670 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 4 Jul 2011 22:30:49 +0200 Subject: refs: added constructor flag to allow refs to be instatiated from any path, including simple test --- git/test/test_refs.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git/test/test_refs.py') diff --git a/git/test/test_refs.py b/git/test/test_refs.py index 092861da..d3b1f681 100644 --- a/git/test/test_refs.py +++ b/git/test/test_refs.py @@ -24,6 +24,11 @@ class TestRefs(TestBase): assert isinstance(instance, ref_type) # END for each name # END for each type + + # invalid path + self.failUnlessRaises(ValueError, TagReference, self.rorepo, "refs/invalid/tag") + # works without path check + TagReference(self.rorepo, "refs/invalid/tag", check_path=False) def test_tag_base(self): tag_object_refs = list() -- cgit v1.2.1