class UserFormTest(TestCase):
def setUp(self):
self.client = Client()
self.user = User.objects.create_user('test@test.com', 'testpassword')
self.client.login(username='test@test.com', password='testpassword')
def test_logout(self):
response = self.client.get('/user/logout/')
self.assertEqual(response.status_code, 200)