#NEWLINE# def testInlineProxyAdmin( self ) : #NEWLINE# #INDENT# self . assertTrue ( is_registered ( InlineTestParentModelProxy ) ) #NEWLINE# self . assertTrue ( ( 'children' in get_adapter ( InlineTestParentModelProxy ) . follow ) ) #NEWLINE# parent_pk = self . createInlineProxyObjects ( ) #NEWLINE# versions = list ( get_for_object_reference ( InlineTestParentModelProxy , parent_pk ) ) #NEWLINE# response = self . client . get ( reverse ( 'admin:test_reversion_inlinetestparentmodelproxy_revision' , args = ( parent_pk , versions [ 0 ] . pk ) ) ) #NEWLINE# self . assertContains ( response , 'parent version2' ) #NEWLINE# self . assertContains ( response , 'non-generic child version 1' ) #NEWLINE# response = self . client . get ( reverse ( 'admin:test_reversion_inlinetestparentmodelproxy_revision' , args = ( parent_pk , versions [ 1 ] . pk ) ) ) #NEWLINE# self . assertContains ( response , 'parent version1' ) #NEWLINE# self . assertNotContains ( response , 'non-generic child version 1' )