Beispiel #1
0
 def test_multi_mixed(self):
     self.assertTrue(remove_files([self.fh1, 'some_fh.csv']))
     self.assertFalse(os.path.isfile(self.fh1))
Beispiel #2
0
 def test_single_non_existent(self):
     self.assertTrue(remove_files('some_fh.csv'))
Beispiel #3
0
 def test_single_file(self):
     self.assertTrue(remove_files(self.fh1))
     self.assertFalse(os.path.isfile(self.fh1))
Beispiel #4
0
 def test_multi_files(self):
     self.assertTrue(remove_files([self.fh1, self.fh2]))
     self.assertFalse(os.path.isfile(self.fh1))
     self.assertFalse(os.path.isfile(self.fh2))
Beispiel #5
0
 def test_None(self):
     self.assertFalse(remove_files(None))