test_ok1/py/execnet/testing/test_event.py

12 lines
351 B
Python
Raw Normal View History

import py
pytest_plugins = "pytester"
class TestExecnetEvents:
def test_popengateway(self, eventrecorder):
gw = py.execnet.PopenGateway()
event = eventrecorder.popevent("gateway_init")
assert event.args[0] == gw
gw.exit()
event = eventrecorder.popevent("gateway_exit")
assert event.args[0] == gw