def METHOD_NAME() -> None:
    # Expect that the process_exited and connection_lost callbacks
    # are also called in a GeneratorMixIn protocol
    class TestPostPipeProtocol(GeneratorMixIn, StdOutErrCapture):
        def __init__(self) -> None:
            GeneratorMixIn.__init__(self)
            StdOutErrCapture.__init__(self)
        def process_exited(self) -> None:
            self.send_result(1)
            self.send_result(2)
        def connection_lost(self, exc: Optional[BaseException]) -> None:
            self.send_result(3)
            self.send_result(4)
    runner = WitlessRunner()
    results = list(runner.run(cmd=["echo", "a"], protocol=TestPostPipeProtocol))
    assert_equal(results, [1, 2, 3, 4])