#NEWLINE# def testCanGetForObject( self ) : #NEWLINE# #INDENT# versions = get_for_object ( self . test11 ) #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 ( self . test21 ) #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' )