From befb617d0c645a5fa3177a1b830a8c9871da4168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20Fr=C3=A9cinaux?= Date: Sun, 7 Sep 2008 21:49:14 +0200 Subject: Make daemon export a property of git.Repo Now you can do this: >>> exported = repo.daemon_export >>> repo.daemon_export = True --- test/git/test_repo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/git/test_repo.py') 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') -- cgit v1.2.1