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