Beispiel #1
0
    def test_pick_up_processes_all_hosts(self):
	list_outbox_hosts.return_value = ['host1', 'host2', 'localhost']

        pick_up()

	self.assertEqual(map(call, PICKUP_HOSTS), 
			self.process_host.mock_calls)
Beispiel #2
0
    def test_pick_up_flushes_buffer_before_syncing(self):
        pick_up()

	self.flush_buffer.assert_called_once_with()
Beispiel #3
0
def main():
    pick_up()