#NEWLINE# def test_it( self , Table ) : #NEWLINE# #INDENT# with patch ( 'palladium.dataset.Table.pandas_read' ) as read_table : #NEWLINE# #INDENT# read_table . return_value = dummy_dataframe [ 3 : 5 ] #NEWLINE# dataset = Table ( 'mypath' , 'targetcol' , some = 'keyword' , skiprows = 3 ) #NEWLINE# ( data , target ) = dataset ( ) #NEWLINE# #UNINDENT# read_table . assert_called_with ( 'mypath' , some = 'keyword' , skiprows = 3 ) #NEWLINE# assert ( len ( data ) == len ( target ) == 2 ) #NEWLINE# assert ( data . tolist ( ) == [ [ 13 , 23.0 ] , [ 14 , 24.0 ] ] ) #NEWLINE# assert ( target . tolist ( ) == [ 3 , 4 ] )