#NEWLINE# def test_update_respects_raw( self ) : #NEWLINE# #INDENT# builder = self . get_builder ( ) #NEWLINE# marker = '?' #NEWLINE# query = ( 'UPDATE "users" SET "email" = foo, "name" = %s WHERE "id" = %s' % ( marker , marker ) ) #NEWLINE# builder . get_connection ( ) . update . return_value = 1 #NEWLINE# result = builder . from_ ( 'users' ) . where ( 'id' , '=' , 1 ) . update ( email = QueryExpression ( 'foo' ) , name = 'bar' ) #NEWLINE# builder . get_connection ( ) . update . assert_called_once_with ( query , [ 'bar' , 1 ] ) #NEWLINE# self . assertEqual ( 1 , result )