File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
readthedocs/rtd_tests/tests Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -241,3 +241,30 @@ def test_project_admins_can_delete_subprojects_that_they_are_not_admin_of(self):
241
241
'/dashboard/my-mainproject/subprojects/my-subproject/delete/' )
242
242
self .assertEqual (response .status_code , 302 )
243
243
self .assertTrue (self .subproject not in [r .child for r in self .project .subprojects .all ()])
244
+
245
+ class URLResolution (TestCase ):
246
+ def setUp (self ):
247
+ self .user1 = new (User , username = 'foo+bar' )
248
+ self .user1 .set_password ('test1' )
249
+ self .user1 .save ()
250
+
251
+ self .
user2 = new (
User ,
username = '[email protected] ' )
252
+ self .user2 .set_password ('test2' )
253
+ self .user2 .save ()
254
+
255
+ self .user3 = new (User , username = 'abc-def+ghi' )
256
+ self .user3 .set_password ('test3' )
257
+ self .user3 .save ()
258
+
259
+ self .client .login (username = 'foo+bar' , password = 'test1' )
260
+
261
+ def test_profile_details_page (self ):
262
+
263
+ response = self .client .get ('/profiles/foo+bar/' )
264
+ self .assertEqual (response .status_code , 200 )
265
+
266
+ response = self .
client .
get (
'/profiles/[email protected] /' )
267
+ self .assertEqual (response .status_code , 200 )
268
+
269
+ response = self .client .get ('/profiles/abc-def+ghi/' )
270
+ self .assertEqual (response .status_code , 200 )
You can’t perform that action at this time.
0 commit comments