@@ -62,10 +62,10 @@ def test_login_and_logout(self):
6262 make_test_data ()
6363
6464 # try logging in without a next
65- r = self .client .get (urlreverse (django . contrib . auth .views .login ))
65+ r = self .client .get (urlreverse (ietf . ietfauth .views .login ))
6666 self .assertEqual (r .status_code , 200 )
6767
68- r = self .client .post (urlreverse (django . contrib . auth .views .login ), {"username" :"plain" , "password" :"plain+password" })
68+ r = self .client .post (urlreverse (ietf . ietfauth .views .login ), {"username" :"plain" , "password" :"plain+password" })
6969 self .assertEqual (r .status_code , 302 )
7070 self .assertEqual (urlsplit (r ["Location" ])[2 ], urlreverse (ietf .ietfauth .views .profile ))
7171
@@ -75,10 +75,10 @@ def test_login_and_logout(self):
7575
7676 r = self .client .get (urlreverse (ietf .ietfauth .views .profile ))
7777 self .assertEqual (r .status_code , 302 )
78- self .assertEqual (urlsplit (r ["Location" ])[2 ], urlreverse (django . contrib . auth .views .login ))
78+ self .assertEqual (urlsplit (r ["Location" ])[2 ], urlreverse (ietf . ietfauth .views .login ))
7979
8080 # try logging in with a next
81- r = self .client .post (urlreverse (django . contrib . auth .views .login ) + "?next=/foobar" , {"username" :"plain" , "password" :"plain+password" })
81+ r = self .client .post (urlreverse (ietf . ietfauth .views .login ) + "?next=/foobar" , {"username" :"plain" , "password" :"plain+password" })
8282 self .assertEqual (r .status_code , 302 )
8383 self .assertEqual (urlsplit (r ["Location" ])[2 ], "/foobar" )
8484
@@ -153,7 +153,7 @@ def test_create_whitelisted_account(self):
153153 email = "new-account@example.com"
154154
155155 # add whitelist entry
156- r = self .client .post (urlreverse (django . contrib . auth .views .login ), {"username" :"secretary" , "password" :"secretary+password" })
156+ r = self .client .post (urlreverse (ietf . ietfauth .views .login ), {"username" :"secretary" , "password" :"secretary+password" })
157157 self .assertEqual (r .status_code , 302 )
158158 self .assertEqual (urlsplit (r ["Location" ])[2 ], urlreverse (ietf .ietfauth .views .profile ))
159159
@@ -406,7 +406,7 @@ def test_change_password(self):
406406
407407 chpw_url = urlreverse (ietf .ietfauth .views .change_password )
408408 prof_url = urlreverse (ietf .ietfauth .views .profile )
409- login_url = urlreverse (django . contrib . auth .views .login )
409+ login_url = urlreverse (ietf . ietfauth .views .login )
410410 redir_url = '%s?next=%s' % (login_url , chpw_url )
411411
412412 # get without logging in
@@ -453,7 +453,7 @@ def test_change_username(self):
453453
454454 chun_url = urlreverse (ietf .ietfauth .views .change_username )
455455 prof_url = urlreverse (ietf .ietfauth .views .profile )
456- login_url = urlreverse (django . contrib . auth .views .login )
456+ login_url = urlreverse (ietf . ietfauth .views .login )
457457 redir_url = '%s?next=%s' % (login_url , chun_url )
458458
459459 # get without logging in
0 commit comments