/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_refs.py

Set refs/heads/master if no ref is set yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    def test_head(self):
28
28
        self.assertEquals("HEAD", refs.ref_to_branch_name("HEAD"))
29
29
        self.assertEquals("HEAD", refs.branch_name_to_ref("HEAD"))
 
30
        self.assertEquals(None, refs.branch_name_to_ref(None))
30
31
 
31
32
    def test_tag(self):
32
33
        self.assertRaises(ValueError, refs.ref_to_branch_name, "refs/tags/FOO")