#NEWLINE# def test_pluck_with_model_found( self ) : #NEWLINE# #INDENT# builder = Builder ( self . get_mock_query_builder ( ) ) #NEWLINE# model = { #NEWLINE# #INDENT# 'name' : 'foo' , #NEWLINE# #UNINDENT# } #NEWLINE# builder . first = mock . MagicMock ( return_value = self ) #NEWLINE# self . assertEqual ( 'foo' , builder . pluck ( 'name' ) ) #NEWLINE# builder . first . assert_called_once_with ( [ 'name' ] )