From 87aa78c4d6c47874a68c8e1eb2bb8ae9d35e6253 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/refs/test_refs.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git/test/refs') diff --git a/git/test/refs/test_refs.py b/git/test/refs/test_refs.py index 668dd94c..81be173c 100644 --- a/git/test/refs/test_refs.py +++ b/git/test/refs/test_refs.py @@ -29,6 +29,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.3