# 이벤트 테스트: 시작 - 종료 테스트에서 이벤트 핸들러(`startup` 및 `shutdown`)를 실행해야 하는 경우, `with` 문과 함께 `TestClient`를 사용할 수 있습니다. {* ../../docs_src/app_testing/tutorial003.py hl[9:12,20:24] *}