diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-07-04 22:30:49 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-07-04 22:30:49 +0200 |
commit | 916c45de7c9663806dc2cd3769a173682e5e8670 (patch) | |
tree | f1ce7416feb0cc5c4ede5fc0548fa1f6e92e2f6d /git/test | |
parent | e94df6acd3e22ce0ec7f727076fd9046d96d57b2 (diff) | |
download | gitpython-916c45de7c9663806dc2cd3769a173682e5e8670.tar.gz |
refs: added constructor flag to allow refs to be instatiated from any path, including simple test
Diffstat (limited to 'git/test')
-rw-r--r-- | git/test/test_refs.py | 5 |
1 files changed, 5 insertions, 0 deletions
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() |