From f22ddca351c45edab9f71359765e34ae16205fa1 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 30 Nov 2009 11:28:15 +0100 Subject: SymbolicReference.delete: Now takes SymbolicReference instances as well, not only paths diff.__str__: fixed incorrect message generation error --- test/git/test_refs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/git/test_refs.py') diff --git a/test/git/test_refs.py b/test/git/test_refs.py index 30c08081..55982b23 100644 --- a/test/git/test_refs.py +++ b/test/git/test_refs.py @@ -233,6 +233,7 @@ class TestRefs(TestBase): far_away_head = rw_repo.create_head("far_head",'HEAD~100') self.failUnlessRaises(GitCommandError, far_away_head.checkout) assert active_branch == active_branch.checkout(force=True) + assert rw_repo.head.reference != far_away_head # test reference creation partial_ref = 'sub/ref' @@ -261,8 +262,8 @@ class TestRefs(TestBase): assert symref.reference == cur_head.reference self.failUnlessRaises(OSError, SymbolicReference.create, rw_repo, symref_path, cur_head.reference) - SymbolicReference.delete(rw_repo, symref_path) - # would raise if the symref wouldn't have been deleted + SymbolicReference.delete(rw_repo, symref) + # would raise if the symref wouldn't have been deletedpbl symref = SymbolicReference.create(rw_repo, symref_path, cur_head.reference) # test symbolic references which are not at default locations like HEAD -- cgit v1.2.1