46
50
_test_needs_features = [tests.GitCommandFeature]
48
52
def test_open_existing(self):
51
55
thebranch = Branch.open('.')
52
56
self.assertIsInstance(thebranch, branch.GitBranch)
56
60
thebranch = Branch.open('.')
57
61
self.assertEquals("LocalGitBranch('file://%s/', 'HEAD')" % self.test_dir, repr(thebranch))
59
63
def test_last_revision_is_null(self):
62
66
thebranch = Branch.open('.')
63
67
self.assertEqual(revision.NULL_REVISION, thebranch.last_revision())