def test_create_token_no_missing_field(self):
    'Test that token is not created if email/password not given'
    res = self.client.post(TOKEN_URL, {'email': 'example@example.com', 'password': ''})
    self.assertTrue(res.status_code, status.HTTP_400_BAD_REQUEST)
    self.assertNotIn('token', res.data)
Test that token is not created if email/password not given
def test_create_token_no_missing_field(self):
    
    res = self.client.post(TOKEN_URL, {'email': 'example@example.com', 'password': })
    self.assertTrue(res.status_code, status.HTTP_400_BAD_REQUEST)
    self.assertNotIn('token', res.data)