#NEWLINE# def test_insert_many( self ) : #NEWLINE# #INDENT# class User ( self . BaseModel ) : #NEWLINE# #INDENT# username = CharField ( ) #NEWLINE# #UNINDENT# data = [ { #NEWLINE# #INDENT# 'username' : ( 'user-%s' % i ) , #NEWLINE# #UNINDENT# } for i in range ( 3 ) ] #NEWLINE# self . assertInsertSQL ( User . insert_many ( data ) , 'INSERT INTO "user" ("username") VALUES (?), (?), (?)' , [ 'user-0' , 'user-1' , 'user-2' ] )