diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 13:38:48 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 14:07:59 +0200 |
commit | 9bf3fdec93fe427bb5f0bd39c986a4e977969f41 (patch) | |
tree | 554683bc11a0818e1f0038be3fa20f8a0b694ed6 /git/test/db/cmd/test_base.py | |
parent | 09517bd78660ee3fbd6716c920c36b967f7a71cf (diff) | |
download | gitpython-9bf3fdec93fe427bb5f0bd39c986a4e977969f41.tar.gz |
First run in order to fix the remote handling. Cleaned up interfaces and figured out that the implementation really should be specific to the git command. This leaves the interface open for other implemntations which use a different way to provide feedback (as we do not make assumptions about the format of a feedback line)
Diffstat (limited to 'git/test/db/cmd/test_base.py')
-rw-r--r-- | git/test/db/cmd/test_base.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git/test/db/cmd/test_base.py b/git/test/db/cmd/test_base.py index 59a6a55e..959be16b 100644 --- a/git/test/db/cmd/test_base.py +++ b/git/test/db/cmd/test_base.py @@ -9,6 +9,7 @@ from git.util import bin_to_hex from git.exc import BadObject from git.db.complex import CmdCompatibilityGitDB +from git.db.cmd.base import * class TestBase(RepoBase): RepoCls = CmdCompatibilityGitDB @@ -25,3 +26,7 @@ class TestBase(RepoBase): # fails with BadObject for invalid_rev in ("0000", "bad/ref", "super bad"): self.failUnlessRaises(BadObject, gdb.partial_to_complete_sha_hex, invalid_rev) + + def test_fetch_info(self): + self.failUnlessRaises(ValueError, CmdFetchInfo._from_line, self.rorepo, "nonsense", '') + self.failUnlessRaises(ValueError, CmdFetchInfo._from_line, self.rorepo, "? [up to date] 0.1.7RC -> origin/0.1.7RC", '') |