summaryrefslogtreecommitdiff
path: root/git/test/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-08 09:45:50 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-08 09:45:50 +0100
commitf7b7eb6245e7d7c4535975268a9be936e2c59dc8 (patch)
treebdc6c5aa710632cc60e2c31ab08882c1e8b0d958 /git/test/test_repo.py
parentc7887c66483ffa9a839ecf1a53c5ef718dcd1d2d (diff)
downloadgitpython-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.py7
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)