#NEWLINE# def test_csv_with_header( ) : #NEWLINE# #INDENT# with tmpfile ( 'db' ) as dbfilename : #NEWLINE# #INDENT# with filetext ( 'a,b\n1,2\n3,4' , extension = 'csv' ) as csvfilename : #NEWLINE# #INDENT# t = odo ( csvfilename , ( 'sqlite:///%s::mytable' % dbfilename ) ) #NEWLINE# assert ( discover ( t ) == dshape ( 'var * {a: int64, b: int64}' ) ) #NEWLINE# assert ( odo ( csvfilename , set ) == set ( [ ( 1 , 2 ) , ( 3 , 4 ) ] ) )