#NEWLINE# def _read_signup_email( self , email ) : #NEWLINE# #INDENT# urlmatch = re . search ( 'https?://[^/]*(/.*reset/\\S*)' , self . body ) #NEWLINE# self . assertTrue ( ( urlmatch is not None ) , 'No URL found in sent email' ) #NEWLINE# return ( urlmatch . group ( ) , urlmatch . groups ( ) [ 0 ] )