#NEWLINE# @ override_settings ( ROOT_URLCONF = 'wagtail.wagtailadmin.urls' ) #NEWLINE# def test_email_found_default_url( self ) : #NEWLINE# #INDENT# response = self . client . post ( reverse ( 'wagtailadmin_password_reset' ) , { #NEWLINE# #INDENT# 'email' : 'siteeditor@example.com' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 302 ) #NEWLINE# self . assertEqual ( len ( mail . outbox ) , 1 ) #NEWLINE# self . assertIn ( 'testserver' , mail . outbox [ 0 ] . body )