#NEWLINE# def test_insert_method( self ) : #NEWLINE# #INDENT# builder = self . get_builder ( ) #NEWLINE# query = 'INSERT INTO "users" ("email") VALUES (?)' #NEWLINE# builder . get_connection ( ) . insert . return_value = True #NEWLINE# result = builder . from_ ( 'users' ) . insert ( { #NEWLINE# #INDENT# 'email' : 'foo' , #NEWLINE# #UNINDENT# } ) #NEWLINE# builder . get_connection ( ) . insert . assert_called_once_with ( query , [ 'foo' ] ) #NEWLINE# self . assertTrue ( result )