#NEWLINE# def test_is_registered( self , site ) : #NEWLINE# #INDENT# assert site . is_registered ( ModelAdmin ( Product , site ) ) #NEWLINE# site . register ( Product ) #NEWLINE# product = site . _registry [ 0 ] #NEWLINE# assert site . is_registered ( product )