#NEWLINE# def test_table_resource( ) : #NEWLINE# #INDENT# with tmpfile ( 'csv' ) as filename : #NEWLINE# #INDENT# ds = dshape ( 'var * {a: int, b: int}' ) #NEWLINE# csv = CSV ( filename ) #NEWLINE# append ( csv , [ [ 1 , 2 ] , [ 10 , 20 ] ] , dshape = ds ) #NEWLINE# t = data ( filename ) #NEWLINE# assert isinstance ( t . data , CSV ) #NEWLINE# assert ( into ( list , compute ( t ) ) == into ( list , csv ) )