def test_parse_empty_transaction(self): res = qifqif.parse_lines(testdata.generate_lines('PDM^^')) self.assertEqual(len(res), 1)
def test_parse_delimiter_optional(self): res_no_delim = qifqif.parse_lines(testdata.generate_lines('PDM^P')) res_delim_end = qifqif.parse_lines(testdata.generate_lines('PDM^P^')) res_delim_ends = qifqif.parse_lines(testdata.generate_lines('^PDM^P^')) self.assertEqual(res_no_delim, res_delim_end) self.assertEqual(res_delim_end, res_delim_ends)
def test_parse_delimiter_optional(self): res_no_delim = qifile.parse_lines(testdata.generate_lines("PDM^P")) res_delim_end = qifile.parse_lines(testdata.generate_lines("PDM^P^")) res_delim_ends = qifile.parse_lines(testdata.generate_lines("^PDM^P^")) self.assertEqual(res_no_delim, res_delim_end) self.assertEqual(res_delim_end, res_delim_ends)
def test_parse_empty_transaction(self): res = qifile.parse_lines(testdata.generate_lines("PDM^^")) self.assertEqual(len(res), 1)
def test_parse_default_transaction(self): res = qifile.parse_lines(testdata.generate_lines('PDM')) self.assertEqual(len(res), 1)