'Login, check that the corresponding view\'s response has a 200 status code.'

def login(self, email, password):

    resp = self.client.post(reverse('login'), {'email': email, 'password': password})
    self.assertEqual(resp.status_code, 200)
    data = json.loads(resp.content)
    self.assertTrue(data['success'])
