Esempio n. 1
0
 def test_poll_reach_ping_badinterval(self):
     """ poll_reach_ping with bad interval calls ping client correctly """
     self.set_attribute_fields({'pings': '45', 'interval': 'FOO'})
     eq_(poll_reach_ping(self.poller_buffer, '', **self.test_kwargs), True)
     self.assert_ping_host_called(cb_reach_ping, 45,300)
Esempio n. 2
0
 def test_poll_reach_ping_no_numping(self):
     """ poll_reach_ping with missing ping count  calls ping client correctly """
     self.set_attribute_fields({'interval': '67'})
     eq_(poll_reach_ping(self.poller_buffer, '', **self.test_kwargs), True)
     self.assert_ping_host_called(cb_reach_ping, 10,67)