From f7b7eb6245e7d7c4535975268a9be936e2c59dc8 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 8 Jan 2015 09:45:50 +0100 Subject: Added Remote.exists() method, and test. Fixes #229 --- git/test/test_repo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'git/test/test_repo.py') 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) -- cgit v1.2.1