#NEWLINE# def assertIsValidUrl( self , url , view_name , * args ) : #NEWLINE# #INDENT# regex = '^https?://.*{expected_url}$' . format ( expected_url = reverse ( view_name , args = args ) ) #NEWLINE# self . assertRegex ( url , regex )