#NEWLINE# def test_delete( self , model_context ) : #NEWLINE# #INDENT# User = model_context [ 'User' ] #NEWLINE# session = model_context [ 'session' ] #NEWLINE# self . users ( User , session ) #NEWLINE# session . commit ( ) #NEWLINE# queryset = session . query ( User ) . filter ( ( User . id > 2 ) ) #NEWLINE# assert ( len ( model_context ) == 2 ) #NEWLINE# queryset . delete ( ) #NEWLINE# session . commit ( ) #NEWLINE# assert ( len ( queryset ) == 0 )