summaryrefslogtreecommitdiff
path: root/git/test/refs/test_refs.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-07-04 23:52:17 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-07-04 23:52:17 +0200
commitda12df95faf27f2d69c9b69391c61b584e16614d (patch)
treeae4f8d724ac857288dec901e080ffb6126d968c9 /git/test/refs/test_refs.py
parentb7ae99cd13839036a34aca06078d3431a11829ff (diff)
parent3379127de7642a80687487c41e459e0cee9ec44f (diff)
downloadgitpython-da12df95faf27f2d69c9b69391c61b584e16614d.tar.gz
Merge branch 'remote-fixes'
Diffstat (limited to 'git/test/refs/test_refs.py')
-rw-r--r--git/test/refs/test_refs.py5
1 files changed, 5 insertions, 0 deletions
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()