#NEWLINE# def testCanGetDeleted( self ) : #NEWLINE# #INDENT# with create_revision ( ) : #NEWLINE# #INDENT# self . test11 . delete ( ) #NEWLINE# self . test21 . delete ( ) #NEWLINE# #UNINDENT# versions = get_deleted ( ReversionTestModel1 ) #NEWLINE# self . assertEqual ( len ( self ) , 1 ) #NEWLINE# self . assertEqual ( versions [ 0 ] . field_dict [ 'name' ] , 'model1 instance1 version2' ) #NEWLINE# versions = get_deleted ( ReversionTestModel2 ) #NEWLINE# self . assertEqual ( len ( versions ) , 1 ) #NEWLINE# self . assertEqual ( versions [ 0 ] . field_dict [ 'name' ] , 'model2 instance1 version2' )