'Override the base implementation so we can do appropriate asserts'

def _login(self, email, password, should_succeed=True, err_msg_check=None):

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