'A session engine that modifies the session key can be used to log in'

def test_login(self):

    login = self.client.login(username='testclient', password='password')
    self.assertTrue(login, 'Could    not    log    in')
    response = self.client.get('/test_client/login_protected_view/')
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response.context['user'].username, 'testclient')
