def test_run_fetchers(self, the_host, capsys): fetcher_config = FetcherConfig() fetcher_config.write(hostname=the_host) run_fetchers(serial=str(fetcher_config.serial), host_name=the_host, timeout=35) captured = capsys.readouterr() assert captured.out == make_success_answer("{}") + make_failure_answer( data="No process", hint="failed") + make_waiting_answer()
def test_controller_waiting(self): assert make_waiting_answer() == b"fetch:WAITING: :0 :"