def METHOD_NAME(self, instance, coordinator, workspace, external_pipeline):
    run = self.create_run_for_test(
        instance, external_pipeline, run_id="foo-1", status=DagsterRunStatus.NOT_STARTED
    )
    coordinator.submit_run(SubmitRunContext(run, workspace))
    coordinator.cancel_run(run.run_id)
    stored_run = instance.get_run_by_id("foo-1")
    assert stored_run.status == DagsterRunStatus.CANCELED