#NEWLINE# def testCanGetForObjectReference( self ) : #NEWLINE# #INDENT# versions = get_for_object_reference ( ReversionTestModel1 , self . test11 . pk ) #NEWLINE# self . assertEqual ( len ( versions ) , 2 ) #NEWLINE# self . assertEqual ( versions [ 0 ] . field_dict [ 'name' ] , 'model1 instance1 version2' ) #NEWLINE# self . assertEqual ( versions [ 1 ] . field_dict [ 'name' ] , 'model1 instance1 version1' ) #NEWLINE# versions = get_for_object_reference ( ReversionTestModel2 , self . test21 . pk ) #NEWLINE# self . assertEqual ( len ( versions ) , 2 ) #NEWLINE# self . assertEqual ( versions [ 0 ] . field_dict [ 'name' ] , 'model2 instance1 version2' ) #NEWLINE# self . assertEqual ( versions [ 1 ] . field_dict [ 'name' ] , 'model2 instance1 version1' )