Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
 def testCreateStatistics(self):
     mongoIndex = MongoIndex(self.__mongoUtils, self.__mongoReadUtils)
     mongoIndex.createStatistics(self.__fsWorker, self.__rFS, self.__smN,
                                 self.__scc)
Exemplo n.º 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)
Exemplo n.º 6
0
 def testCreateStatistics(self):
     mongoIndex = MongoIndex(self.__mongoUtils, self.__mongoReadUtils)
     mongoIndex.createStatistics(self.__fsWorker, self.__rFS, self.__smN, self.__scc)