def test_infer_header(): with filetext('name,val\nAlice,100\nNA,200') as fn: assert infer_header(fn) == True with filetext('Alice,100\nNA,200') as fn: assert infer_header(fn) == False
def test_infer_header(): with filetext("name,val\nAlice,100\nNA,200") as fn: assert infer_header(fn) == True with filetext("Alice,100\nNA,200") as fn: assert infer_header(fn) == False