def test_no_response(self): """Check that the poller doesnt throw an exception""" poller = gauge_pollers.GaugePortStatsPoller(mock.Mock(), '__name__', mock.Mock()) self.check_no_response(poller)
def test_send_req(self): """Check that the poller sends a port stats request""" conf = mock.Mock(interval=1) poller = gauge_pollers.GaugePortStatsPoller(conf, '__name__', mock.Mock()) self.check_send_req(poller, parser.OFPPortStatsRequest)