/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tests/test_branch.py

Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
    make_branch = make_empty_branch
247
247
 
248
248
 
249
 
class BranchNameRefConversionTests(tests.TestCase):
250
 
 
251
 
    def test_head(self):
252
 
        self.assertEquals("HEAD", branch.ref_to_branch_name("HEAD"))
253
 
        self.assertEquals("HEAD", branch.branch_name_to_ref("HEAD"))
254
 
 
255
 
    def test_tag(self):
256
 
        self.assertRaises(ValueError, branch.ref_to_branch_name, "refs/tags/FOO")
257
 
 
258
 
    def test_branch(self):
259
 
        self.assertEquals("frost", branch.ref_to_branch_name("refs/heads/frost"))
260
 
        self.assertEquals("refs/heads/frost", branch.branch_name_to_ref("frost"))
 
249