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