mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Revert several tests
This commit is contained in:
parent
9a6352789e
commit
ebd840c19f
|
@ -170,9 +170,9 @@ class TestUserSetter(TestCase):
|
||||||
|
|
||||||
def test_user_can_logout(self):
|
def test_user_can_logout(self):
|
||||||
self.request.user = self.user
|
self.request.user = self.user
|
||||||
assert is_anonymous(self.request.user) is False
|
self.assertFalse(is_anonymous(self.request.user))
|
||||||
logout(self.request)
|
logout(self.request)
|
||||||
assert is_anonymous(self.request.user) is True
|
self.assertTrue(is_anonymous(self.request.user))
|
||||||
|
|
||||||
def test_logged_in_user_is_set_on_wrapped_request(self):
|
def test_logged_in_user_is_set_on_wrapped_request(self):
|
||||||
login(self.request, self.user)
|
login(self.request, self.user)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user