714
703
index_two = CannedIndex('2', ['b', 'c'])
715
704
index.search_path = [index_one, index_two]
716
705
self.assertEqual([(index_one, 'a'), (index_two, 'b'), (index_two, 'c')],
719
708
def test_search_checks_for_duplicate_prefixes(self):
720
709
"""Its an error when there are multiple indices with the same prefix."""
721
710
indices = help.HelpIndices()
722
711
indices.search_path = [help_topics.HelpTopicIndex(),
724
713
self.assertRaises(errors.DuplicateHelpPrefix, indices.search, None)