def testCreateSourceNameIndexException(self): mongoIndex = MongoIndex(self.__mongoUtils, self.__mongoReadUtils) self.assertRaises(ParamError, mongoIndex.createSourceNameIndex, None, 2) self.assertRaises(TypeError, mongoIndex.createSourceNameIndex, 1, 2) self.assertRaises(ParamError, mongoIndex.createSourceNameIndex, self.__fsWorker, None) self.assertRaises(TypeError, mongoIndex.createSourceNameIndex, self.__fsWorker, 2)
def testCreateSourceNameIndex(self): mongoIndex = MongoIndex(self.__mongoUtils, self.__mongoReadUtils) simNamesN = FileNameNormalization() mongoIndex.createStatistics(self.__fsWorker, self.__rFS, self.__smN, self.__scc) mongoIndex.createSourceNameIndex(self.__fsWorker, simNamesN)
def testCreateStatisticsException(self): mongoIndex = MongoIndex(self.__mongoUtils, self.__mongoReadUtils) self.assertRaises(ParamError, mongoIndex.createStatistics, None, self.__rFS, self.__smN, self.__scc) self.assertRaises(TypeError, mongoIndex.createStatistics, "1", self.__rFS, self.__smN, self.__scc)
def testCreateStatistics(self): mongoIndex = MongoIndex(self.__mongoUtils, self.__mongoReadUtils) mongoIndex.createStatistics(self.__fsWorker, self.__rFS, self.__smN, self.__scc)