#NEWLINE# @ skip_no_rw_loc #NEWLINE# def test_sql_to_csv( sql , csv , tmpdir ) : #NEWLINE# #INDENT# ( sql , bind ) = sql #NEWLINE# sql = odo ( csv , sql , bind = bind ) #NEWLINE# with tmpfile ( '.csv' , dir = tmpdir ) as fn : #NEWLINE# #INDENT# csv = odo ( fn , fn , bind = bind ) #NEWLINE# assert ( odo ( csv , list ) == data ) #NEWLINE# assert ( discover ( csv ) . measure . names == discover ( sql ) . measure . names )