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