1 2 3 4 5 6 7 8 9 10 11 12
import collections import csv Case = collections.namedtuple("Case", "a b status reason") def test_verify_cases(): with open("fixtures/verify.csv") as f: reader = csv.reader(f, delimiter=',') for row in reader: case = Case(row) print(case)