def METHOD_NAME(self):
    """api errors correctly for empty input"""
    response = self.client.post(self.link, data={})
    self.assertEqual(response.status_code, 400)
    self.assertEqual(
        response.json(),
        {
            "new_password": ["This field is required."],
            "password": ["This field is required."],
        },
    )