def _setupAndTestWithDirectories(self, dirName): files = seedFiles(BASE_INPUT_FILE, NUM_FILES, self.SEED, outputDir=dirName, link=False) itemsInDir = listdir(dirName) self.assertEqual(len(itemsInDir), NUM_FILES, msg=itemsInDir) self._examineSeedsInFiles(files) rmdir(dirName)
def test_noOutdir_noLink(self): """ Write the files and verify contents with no output dir nor linking. """ files = seedFiles(BASE_INPUT_FILE, NUM_FILES, self.SEED, outputDir=None, link=False) self._examineSeedsInFiles(files)
def test_missingInput(self): """Verify an error is raised if the input does not exist""" with self.assertRaises(OSError): seedFiles("THIS SHOULD FAIL", NUM_FILES)