Esempio n. 1
0
 def test_no_response(self):
     """Check that the poller doesnt throw an exception"""
     poller = gauge_pollers.GaugeFlowTablePoller(mock.Mock(), '__name__',
                                                 mock.Mock())
     self.check_no_response(poller)
Esempio n. 2
0
 def test_send_req(self):
     """Check that the poller sends a flow stats request"""
     conf = mock.Mock(interval=1)
     poller = gauge_pollers.GaugeFlowTablePoller(conf, '__name__',
                                                 mock.Mock())
     self.check_send_req(poller, parser.OFPFlowStatsRequest)