~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_index.py

remove all trailing whitespace from bzr source

Show diffs side-by-side

added added

removed removed

Lines of Context:
558
558
        # not create a new transport request, and should return False (cannot
559
559
        # be in the index) - even when the byte location we ask for is outside
560
560
        # the parsed region
561
 
        # 
 
561
        #
562
562
        result = index._lookup_keys_via_location([(4000, self.make_key(40))])
563
563
        self.assertEqual(
564
564
            [((4000, self.make_key(40)),
1047
1047
        self.assertEqual(set([(index1, ('name', ), 'data', ((('ref', ), ), )),
1048
1048
            (index2, ('ref', ), 'refdata', ((), ))]),
1049
1049
            set(index.iter_entries([('name', ), ('ref', )])))
1050
 
 
 
1050
 
1051
1051
    def test_iter_all_keys_dup_entry(self):
1052
1052
        index1 = self.make_index('1', 1, nodes=[
1053
1053
            (('name', ), 'data', ([('ref', )], )),
1058
1058
        self.assertEqual(set([(index1, ('name', ), 'data', ((('ref',),),)),
1059
1059
            (index1, ('ref', ), 'refdata', ((), ))]),
1060
1060
            set(index.iter_entries([('name', ), ('ref', )])))
1061
 
 
 
1061
 
1062
1062
    def test_iter_missing_entry_empty(self):
1063
1063
        index = CombinedGraphIndex([])
1064
1064
        self.assertEqual([], list(index.iter_entries([('a', )])))
1073
1073
        index2 = self.make_index('2')
1074
1074
        index = CombinedGraphIndex([index1, index2])
1075
1075
        self.assertEqual([], list(index.iter_entries([('a', )])))
1076
 
 
 
1076
 
1077
1077
    def test_iter_entry_present_one_index_only(self):
1078
1078
        index1 = self.make_index('1', nodes=[(('key', ), '', ())])
1079
1079
        index2 = self.make_index('2', nodes=[])