def test_on_event_loop_close(self): x = KQueueMonitor(['a', 'b']) x.close = Mock() hub = Mock() x.on_event_loop_close(hub) x.close.assert_called_with(hub.poller)
def test_on_event_loop_close(self): x = KQueueMonitor(['a', 'b']) x.close = Mock() x._kq = Mock(name='_kq') x.on_event_loop_close(Mock(name='hub')) x.close.assert_called_with(x._kq)
def test_on_event_loop_close(self): x = KQueueMonitor(['a', 'b']) x.close = Mock() x._kq = Mock(name='_kq') x.on_event_loop_close(Mock(name='hub')) x.close.assert_called_with(x._kq)
def test_on_poll_close(self): x = KQueueMonitor(['a', 'b']) x.close = Mock() hub = Mock() x.on_poll_close(hub) x.close.assert_called_with(hub.poller)