def test_multi_mixed(self): self.assertTrue(remove_files([self.fh1, 'some_fh.csv'])) self.assertFalse(os.path.isfile(self.fh1))
def test_single_non_existent(self): self.assertTrue(remove_files('some_fh.csv'))
def test_single_file(self): self.assertTrue(remove_files(self.fh1)) self.assertFalse(os.path.isfile(self.fh1))
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))
def test_None(self): self.assertFalse(remove_files(None))