~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_chk_map.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-09 22:14:24 UTC
  • mfrom: (5777.4.2 mutableinventorytree)
  • mto: This revision was merged to the branch mainline in revision 5787.
  • Revision ID: jelmer@samba.org-20110409221424-a2air35exbz50hi8
Mergemutableinventorytree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
            "      ('ddd',) 'initial ddd content'\n",
225
225
            c_map._dump_tree())
226
226
 
227
 
    def test_root_only_aaa_ddd_16(self):
 
227
    def test_one_deep_map_16(self):
228
228
        c_map = self.make_root_only_aaa_ddd_map(
229
229
                search_key_func=chk_map._search_key_16)
230
230
        # We use 'aaa' and 'ddd' because they happen to map to 'F' when using
1108
1108
        basis_get = basis._store.get_record_stream
1109
1109
        def get_record_stream(keys, order, fulltext):
1110
1110
            if ('sha1:1adf7c0d1b9140ab5f33bb64c6275fa78b1580b7',) in keys:
1111
 
                raise AssertionError("'aaa' pointer was followed %r" % keys)
 
1111
                self.fail("'aaa' pointer was followed %r" % keys)
1112
1112
            return basis_get(keys, order, fulltext)
1113
1113
        basis._store.get_record_stream = get_record_stream
1114
1114
        result = sorted(list(target.iter_changes(basis)))