Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)