def test_create_token_no_user(self):
    'Test that token is not created if user does not exist'
    payload = {'email': 'example@example.com', 'password': 'wrong'}
    res = self.client.post(TOKEN_URL, payload)
    self.assertTrue(res.status_code, status.HTTP_400_BAD_REQUEST)
    self.assertNotIn('token', res.data)
Test that token is not created if user does not exist
def test_create_token_no_user(self):
    
    payload = {'email': 'example@example.com', 'password': 'wrong'}
    res = self.client.post(TOKEN_URL, payload)
    self.assertTrue(res.status_code, status.HTTP_400_BAD_REQUEST)
    self.assertNotIn('token', res.data)