Exemple #1
0
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
Exemple #2
0
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