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

Add 'github:' directory service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    def test_escape_space(self):
72
72
        self.assertEquals("bla_s", escape_file_id("bla "))
73
73
 
 
74
    def test_escape_control_l(self):
 
75
        self.assertEquals("bla_c", escape_file_id("bla\x0c"))
 
76
 
 
77
    def test_unescape_control_l(self):
 
78
        self.assertEquals("bla\x0c", unescape_file_id("bla_c"))
 
79
 
74
80
    def test_escape_underscore(self):
75
81
        self.assertEquals("bla__", escape_file_id("bla_"))
76
82
 
337
343
        b = Blob.from_string("bla")
338
344
        t1 = directory_to_tree(ie, lambda x: b.id, {}, None)
339
345
        t2 = Tree()
340
 
        t2.add(0100644, "bar", b.id)
 
346
        t2.add("bar", 0100644, b.id)
341
347
        self.assertEquals(t1, t2)