def test_watchdog_run_separate_thread(): wd = Watchdog(tmp_wpth, None) wd.start() while not wd.is_running(): sleep(0.1) res = wd.watched_path() == tmp_wpth wd.stop() assert res