def test_01_open_csv(self): # first try a valid csv sheet = reapplication.open_csv("valid.csv") assert sheet is not None headers = sheet.headers() assert headers == ["", "1234-5678", "2345-6789", "3456-7890"], headers # now try one that won't parse with self.assertRaises(reapplication.CsvValidationException): sheet = reapplication.open_csv("random_binary")