def test_results_as_list_must_return_a_list(self): expected_results = [ '/tmp/flunfa-2.tsv', '/tmp/flunfa-3.tsv', ] report = Report(report='my_report_class') report.results = ';'.join(expected_results) self.assertEqual(report.results_as_list, expected_results)
def test_results_as_list_must_return_empty_list_if_field_is_empty(self): report = Report(report='my_report_class') report.results = '' self.assertEqual(report.results_as_list, [])