#NEWLINE# def test_staticmethods( ) : #NEWLINE# #INDENT# data = [ b'foo,bar' , b'a,1' , b'b,2' , b'c,2' ] #NEWLINE# f = NamedTemporaryFile ( mode = 'wb' , delete = False ) #NEWLINE# f . write ( b'\n' . join ( data ) ) #NEWLINE# f . close ( ) #NEWLINE# expect = ( ( 'foo' , 'bar' ) , ( 'a' , '1' ) , ( 'b' , '2' ) , ( 'c' , '2' ) ) #NEWLINE# actual = etl . fromcsv ( f . name , encoding = 'ascii' ) #NEWLINE# ieq ( expect , actual ) #NEWLINE# ieq ( expect , actual )