Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 def testCreateStatistics(self):
     mongoIndex = MongoIndex(self.__mongoUtils, self.__mongoReadUtils)
     mongoIndex.createStatistics(self.__fsWorker, self.__rFS, self.__smN,
                                 self.__scc)
Exemple #5
0
 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)
Exemple #6
0
 def testCreateStatistics(self):
     mongoIndex = MongoIndex(self.__mongoUtils, self.__mongoReadUtils)
     mongoIndex.createStatistics(self.__fsWorker, self.__rFS, self.__smN, self.__scc)