Beispiel #1
0
    def test_drop_off_processes_all_hosts(self):
        drop_off()

        self.assertEqual(map(call, self.fake_hosts), self.process_host.mock_calls)
Beispiel #2
0
    def test_drop_off_flushes_buffer(self):
        drop_off()

        self.flush_buffer.assert_called_once_with()
Beispiel #3
0
    def test_drop_off_lists_buffer_hosts(self):
        drop_off()

        self.list_buffer_hosts.assert_called_once_with()
Beispiel #4
0
def main():
    drop_off()