| from pyee import ExecutorEventEmitter |
| class PyeeTestError(Exception): |
| def test_executor_emit(): |
| """Test that ExecutorEventEmitters can emit events.""" |
| with ExecutorEventEmitter() as ee: |
| should_call.assert_called_once() |
| def test_executor_once(): |
| """Test that ExecutorEventEmitters also emit events for once.""" |
| with ExecutorEventEmitter() as ee: |
| should_call.assert_called_once() |
| def test_executor_error(): |
| """Test that ExecutorEventEmitters handle errors.""" |
| with ExecutorEventEmitter() as ee: |
| should_call.assert_called_once() |