Exemplo n.º 1
0
 def test_invalid_filepath(self):
     """Check whether it raises an exception when the filepath is invalid"""
     actual_entries = util.file_handling("invalid_filepath")
     self.assertListEqual(actual_entries, ["FileNotFoundError"])
Exemplo n.º 2
0
 def test_invalid_entries(self):
     """Check file_handling with invalid entries"""
     actual_entries = util.file_handling(
         "tests/resources/invalid_target_list.txt")
     self.assertListEqual(actual_entries, TestFileHandling.expected_entries)