summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSteve Frécinaux <code@istique.net>2008-09-07 21:49:14 +0200
committerSteve Frécinaux <code@istique.net>2008-09-07 21:49:14 +0200
commitbefb617d0c645a5fa3177a1b830a8c9871da4168 (patch)
tree1b338262374193e747cb8c10a540395b4644a636 /test/git/test_repo.py
parentc8c50d8be2dc5ae74e53e44a87f580bf25956af9 (diff)
downloadgitpython-befb617d0c645a5fa3177a1b830a8c9871da4168.tar.gz
Make daemon export a property of git.Repo
Now you can do this: >>> exported = repo.daemon_export >>> repo.daemon_export = True
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 3c323878..036ae1e9 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -194,10 +194,12 @@ class TestRepo(object):
@patch('git.utils', 'touch')
def test_enable_daemon_serve(self, touch):
- self.repo.enable_daemon_serve
+ self.repo.daemon_serve = False
+ assert_false(self.repo.daemon_serve)
def test_disable_daemon_serve(self):
- self.repo.disable_daemon_serve
+ self.repo.daemon_serve = True
+ assert_true(self.repo.daemon_serve)
# @patch(os.path, 'exists')
# @patch('__builtin__', 'open')