'Named URLs should be reversible'

def test_named_urls(self):

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