190
190
def test_search_returns_index_results(self):
191
191
"""Searching should return all the help topics found."""
192
192
class CannedIndex(object):
194
195
self.result = search_result
195
196
def get_topics(self, topic):
197
198
index = help.HelpIndices()
199
index.search_path = [CannedIndex('1', ['a']), CannedIndex('2', ['b', 'c'])]
199
200
self.assertEqual(['a', 'b', 'c'], index.search(None))