~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_chk_map.py

Get a working chk_map using inventory implementation bootstrapped.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        self.assertEqual([("a", "content here"), ("b", "more content")],
107
107
            sorted(list(chkmap.iteritems())))
108
108
 
 
109
    def test_iteritems_selected_one_of_two_items(self):
 
110
        chk_bytes = self.get_chk_bytes()
 
111
        root_key = CHKMap.from_dict(chk_bytes,
 
112
            {"a":"content here", "b":"more content"})
 
113
        chkmap = CHKMap(chk_bytes, root_key)
 
114
        self.assertEqual([("a", "content here")],
 
115
            sorted(list(chkmap.iteritems(["a"]))))
 
116
 
109
117
 
110
118
class TestRootNode(TestCaseWithTransport):
111
119