def METHOD_NAME(self):
    self.client.force_authenticate(self.user1)
    resp = self.client.patch("/accounts/profile/", data={"username": "user1@example.com"}, format="json")
    self.assertEqual(resp.status_code, 400)