#NEWLINE# def test_query_passthru( self ) : #NEWLINE# #INDENT# builder = self . get_builder ( ) #NEWLINE# builder . get_query ( ) . foobar = mock . MagicMock ( return_value = 'foo' ) #NEWLINE# self . assertIsInstance ( builder . foobar ( ) , Builder ) #NEWLINE# self . assertEqual ( builder . foobar ( ) , self ) #NEWLINE# builder = self . get_builder ( ) #NEWLINE# builder . get_query ( ) . insert = mock . MagicMock ( return_value = 'foo' ) #NEWLINE# self . assertEqual ( 'foo' , builder . insert ( [ 'bar' ] ) ) #NEWLINE# builder . get_query ( ) . insert . assert_called_once_with ( [ 'bar' ] )