diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-08 09:45:50 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-08 09:45:50 +0100 |
commit | f7b7eb6245e7d7c4535975268a9be936e2c59dc8 (patch) | |
tree | bdc6c5aa710632cc60e2c31ab08882c1e8b0d958 /git/test/test_repo.py | |
parent | c7887c66483ffa9a839ecf1a53c5ef718dcd1d2d (diff) | |
download | gitpython-f7b7eb6245e7d7c4535975268a9be936e2c59dc8.tar.gz |
Added Remote.exists() method, and test. Fixes #229
Diffstat (limited to 'git/test/test_repo.py')
-rw-r--r-- | git/test/test_repo.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/git/test/test_repo.py b/git/test/test_repo.py index 260f7d68..e0be2074 100644 --- a/git/test/test_repo.py +++ b/git/test/test_repo.py @@ -25,7 +25,8 @@ from git import ( Reference, GitDB, Submodule, - GitCmdObjectDB + GitCmdObjectDB, + Remote ) from git.util import join_path_native from git.exc import BadObject @@ -673,3 +674,7 @@ class TestRepo(TestBase): last_commit(repo, 'master', 'git/test/test_base.py') # end for each repository type # end for each iteration + + def test_remote_method(self): + self.failUnlessRaises(ValueError, self.rorepo.remote, 'foo-blue') + assert isinstance(self.rorepo.remote(name='origin'), Remote) |