#NEWLINE# def testDeleteSimple( self ) : #NEWLINE# #INDENT# 'Test delete on models without related models' #NEWLINE# session = ( yield self . data . create ( instruments ) ) #NEWLINE# instruments = session . query ( Instrument ) #NEWLINE# funds = session . query ( Fund ) #NEWLINE# self . assertTrue ( instruments . count ( ) ) #NEWLINE# self . assertTrue ( funds . count ( ) ) #NEWLINE# instruments . delete ( ) #NEWLINE# funds . delete ( ) #NEWLINE# self . assertFalse ( session . query ( Instrument ) . count ( ) ) #NEWLINE# self . assertFalse ( session . query ( Fund ) . count ( ) )