#NEWLINE# def testRecursive( self ) : #NEWLINE# #INDENT# 'Silly test to test both pickle field and picklable instance' #NEWLINE# session = self . session ( ) #NEWLINE# v = ( yield session . add ( self . model ( data = ( 'ciao' , 'pippo' , 4 , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) ) ) #NEWLINE# v2 = self . model ( data = v ) #NEWLINE# self . assertEqual ( v2 . data , v ) #NEWLINE# ( yield session . add ( v ) ) #NEWLINE# self . assertEqual ( v2 . data , v ) #NEWLINE# v2 = ( yield session . query ( self . model ) . get ( id = v2 . id ) ) #NEWLINE# self . assertEqual ( v2 . data , v )