#NEWLINE# def test_virtual_model_options( self ) : #NEWLINE# #INDENT# compiler = ext_db . compiler ( ) #NEWLINE# ( sql , params ) = compiler . create_table ( TestVirtualModel ) #NEWLINE# self . assertEqual ( sql , 'CREATE VIRTUAL TABLE "testvirtualmodel" USING test_ext (baze=nugget, foo=bar)' ) #NEWLINE# self . assertEqual ( params , [ ] ) #NEWLINE# ( sql , params ) = compiler . create_table ( TestVirtualModelChild ) #NEWLINE# self . assertEqual ( sql , 'CREATE VIRTUAL TABLE "testvirtualmodelchild" USING test_ext ("id" INTEGER NOT NULL PRIMARY KEY, baze=nugget, foo=bar)' ) #NEWLINE# self . assertEqual ( params , [ ] ) #NEWLINE# test_options = { #NEWLINE# #INDENT# 'baze' : 'nugz' , #NEWLINE# 'huey' : 'mickey' , #NEWLINE# #UNINDENT# } #NEWLINE# ( sql , params ) = compiler . create_table ( TestVirtualModel , options = test_options ) #NEWLINE# self . assertEqual ( sql , 'CREATE VIRTUAL TABLE "testvirtualmodel" USING test_ext (baze=nugz, foo=bar, huey=mickey)' ) #NEWLINE# self . assertEqual ( params , [ ] )