~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_btree_index.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-15 17:22:02 UTC
  • mfrom: (6260 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6262.
  • Revision ID: jelmer@samba.org-20111115172202-inumr89vw3eo5ffg
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
831
831
            btree_index.BTreeGraphIndex(t1, 'index', 10) !=
832
832
            btree_index.BTreeGraphIndex(t1, 'index', 20))
833
833
 
834
 
    def test_key_too_big(self):
835
 
        # the size that matters here is the _compressed_ size of the key, so we can't
836
 
        # do a simple character repeat.
837
 
        bigKey = ''.join(map(repr, xrange(btree_index._PAGE_SIZE)))
838
 
        self.assertRaises(errors.BadIndexKey,
839
 
                          self.make_index,
840
 
                          nodes=[((bigKey,), 'value', ())])
841
 
        
842
834
    def test_iter_all_only_root_no_size(self):
843
835
        self.make_index(nodes=[(('key',), 'value', ())])
844
836
        t = transport.get_transport_from_url('trace+' + self.get_url(''))