Пример #1
0
 def setUp(self):
     self.reader0 = DepletionReader(DEP_FILES['0'])
     self.reader0.read()
     self.reader1 = DepletionReader(DEP_FILES['1'])
     self.reader1.read()
     self.sampler = DepletionSampler([DEP_FILES[x] for x in ('0', '1')])
Пример #2
0
 def _mismatchedFiles(self,
                      badFilePath,
                      errorType=MismatchedContainersError):
     files = [badFilePath, DEP_FILES['0']]
     with self.assertRaises(errorType):
         DepletionSampler(files)