def test_parse_csv_custom_delimiter(): api = CSVParser({'second': '1:2'}, delimiter=';').parse(CSV_CONTENT_DIFFERENT_DELIMITER) assert api.second == '6' assert api.parse('0:1') == '2' assert api.parse('0:6') is None
def test_parse_csv(): api = CSVParser({'second': '1:2'}).parse(CSV_CONTENT) assert api.second == '6' assert api.parse('0:1') == '2' assert api.parse('0:6') is None