def testIndexBadUri(self): try: indexer = IndexAppService(self._directory, self.shaManager) indexer.indexFOAFUri("http://www.frikier.org/noexiste.rdf") indexer.close() finally: indexer.close()
def setUp(self): self._directory = RAMDirectory() self.shaManager = ShaManager(TESTDB) indexer = IndexAppService(self._directory, self.shaManager) indexer.indexFOAFUri(FRADEURI) indexer.indexFOAFUri(WIKIERURI) indexer.close() self._searcher = SearchAppService(self._directory, self.shaManager)