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

Fix bugs in two lookup_tree_id implementations and add a test for it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
        self.map.commit_write_group()
108
108
        self.assertEquals(("tree", ("fileid", "myrevid")),
109
109
            self.map.lookup_git_sha(t.id))
 
110
        # It's possible for a backend to not implement lookup_tree
 
111
        try:
 
112
            self.assertEquals(t.id,
 
113
                self.map.lookup_tree_id("fileid", "myrevid"))
 
114
        except NotImplementedError:
 
115
            pass
110
116
 
111
117
    def test_revids(self):
112
118
        self.map.start_write_group()