diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-20 10:11:16 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-20 10:11:16 +0200 |
commit | aa5e366889103172a9829730de1ba26d3dcbc01b (patch) | |
tree | 501733a2a12afae0bb0fe60eab33dca5b397c712 /test/git/test_repo.py | |
parent | e64957d8e52d7542310535bad1e77a9bbd7b4857 (diff) | |
download | gitpython-aa5e366889103172a9829730de1ba26d3dcbc01b.tar.gz |
Moved specialized methods like dashify, touch and is_git_dir to module to the respective modules that use them
fixed repo.daemon_export which did not work anymore due to incorrect touch implementation and wrong property names
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r-- | test/git/test_repo.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 7ad68414..b91244c9 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -131,14 +131,13 @@ class TestRepo(TestCase): { 'template': '/awesome'})) assert_true(repo.called) - @patch('git.utils.touch') - def test_enable_daemon_serve(self, touch): - self.repo.daemon_serve = False - assert_false(self.repo.daemon_serve) - - def test_disable_daemon_serve(self): - self.repo.daemon_serve = True - assert_true(self.repo.daemon_serve) + + def test_daemon_export(self): + orig_val = self.repo.daemon_export + self.repo.daemon_export = not orig_val + assert self.repo.daemon_export == ( not orig_val ) + self.repo.daemon_export = orig_val + assert self.repo.daemon_export == orig_val @patch_object(os.path, 'exists') def test_alternates_no_file(self, os): |