#NEWLINE# def test_named_urls( self ) : #NEWLINE# #INDENT# 'Named URLs should be reversible' #NEWLINE# expected_named_urls = [ ( 'login' , [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( 'logout' , [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( 'password_change' , [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( 'password_change_done' , [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( 'password_reset' , [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( 'password_reset_done' , [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( 'password_reset_confirm' , [ ] , { #NEWLINE# #INDENT# 'uidb36' : 'aaaaaaa' , #NEWLINE# 'token' : '1111-aaaaa' , #NEWLINE# #UNINDENT# } ) , ( 'password_reset_complete' , [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ] #NEWLINE# for ( name , args , kwargs ) in expected_named_urls : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# reverse ( name , args = args , kwargs = kwargs ) #NEWLINE# #UNINDENT# except NoReverseMatch : #NEWLINE# #INDENT# self . fail ( ( "Reversal of url named '%s' failed with NoReverseMatch" % name ) )