/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

In .testr.conf; run all git-relevant tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
                "HEAD": "ref: foo", "refs/branches/blala": "la"}))
53
53
 
54
54
    def test_tags(self):
55
 
        self.assertEquals({"mytag": "mysha"},
 
55
        self.assertEquals({"mytag": ("mysha", None)},
56
56
            refs.extract_tags({
57
57
                "HEAD": "ref: foo", "refs/tags/mytag": "mysha"}))
58
58
 
59
59
    def test_ignores_peels(self):
60
 
        self.assertEquals({"mytag": "actualsha"},
 
60
        self.assertEquals({"mytag": ("actualsha", "mysha")},
61
61
            refs.extract_tags({
62
62
                "HEAD": "ref: foo",
63
63
                "refs/tags/mytag": "mysha",
64
64
                "refs/tags/mytag^{}": "actualsha"}))
65
65
 
66
66
    def test_non_ascii_name(self):
67
 
        self.assertEquals({u'myt\xe2g': "actualsha"},
 
67
        self.assertEquals({u'myt\xe2g': ("actualsha", None)},
68
68
            refs.extract_tags({
69
69
                "HEAD": "ref: foo",
70
70
                "refs/tags/myt\xc3\xa2g": "actualsha"}))