diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 16:20:24 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 16:20:24 +0200 |
commit | b197b2dbb527de9856e6e808339ab0ceaf0a512d (patch) | |
tree | 4dcb21b565410c48878be31deebbb441201d542b /test/git/test_head.py | |
parent | 3c770f8e98a0079497d3eb5bc31e7260cc70cc63 (diff) | |
download | gitpython-b197b2dbb527de9856e6e808339ab0ceaf0a512d.tar.gz |
Adjusted all remaining test suites to use the new TestBase class where appropriate
Diffstat (limited to 'test/git/test_head.py')
-rw-r--r-- | test/git/test_head.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/git/test_head.py b/test/git/test_head.py index b8380838..9b18ad7c 100644 --- a/test/git/test_head.py +++ b/test/git/test_head.py @@ -7,12 +7,10 @@ from test.testlib import * from git import * -class TestHead(object): - def setup(self): - self.repo = Repo(GIT_REPO) +class TestHead(TestBase): def test_base(self): - for head in self.repo.heads: + for head in self.rorepo.heads: assert head.name assert "refs/heads" in head.path # END for each head @@ -20,7 +18,7 @@ class TestHead(object): @patch_object(Git, '_call_process') def test_ref_with_path_component(self, git): git.return_value = fixture('for_each_ref_with_path_component') - head = self.repo.heads[0] + head = self.rorepo.heads[0] assert_equal('refactoring/feature1', head.name) assert_true(git.called) |