コード例 #1
0
ファイル: test_gauge.py プロジェクト: anarkiwi/faucet
 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)
コード例 #2
0
ファイル: test_gauge.py プロジェクト: anarkiwi/faucet
 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)