def METHOD_NAME(self):
    monitor = self._create_monitor()
    monitor_environment = self._create_monitor_environment(monitor)
    checkin = MonitorCheckIn.objects.create(
        monitor=monitor,
        monitor_environment=monitor_environment,
        project_id=self.project.id,
        date_added=monitor.date_added,
        status=CheckInStatus.IN_PROGRESS,
    )
    path = self.get_path(monitor, checkin)
    resp = self.client.post(
        path,
        {"file": "invalid_file"},
        format="multipart",
        **self.token_auth_headers,
    )
    assert resp.status_code == 400
    assert resp.data["detail"] == "Please upload a valid file object"