示例#1
0
 def test_redirect_to_login_when_not_authenticated(self):
     test_redirect_to_login_when_not_authenticated(self, self.target_url)
示例#2
0
 def test_redirect_to_login_when_not_authenticated(self):
     test_redirect_to_login_when_not_authenticated(self, reverse("search:home"))
示例#3
0
 def test_redirect_when_not_authenticated(self):
     test_redirect_to_login_when_not_authenticated(self, reverse("post:create"))
示例#4
0
 def test_redirect_to_login_when_not_authenticated(self):
     self.client.logout()
     return test_redirect_to_login_when_not_authenticated(self, self.target_url)
示例#5
0
 def test_redirect_when_not_authenticated(self):
     test_redirect_to_login_when_not_authenticated(self, reverse("post:delete", args=(1, )))