def test_get_stats(self): ep = ListeningBaseEndpoint() ep._chan = Mock(spec=ListenChannel) ep.get_stats() ep._chan.get_stats.assert_called_once_with()
def test_close(self): ep = ListeningBaseEndpoint(node=Mock(soec=NodeB)) ep._chan = Mock() ep.close() ep._chan.close.assert_called_once_with()