def test_find_root_bad_dir(self): with GotRun(['--find-root']) as r: r.assertFails() r.assertInStderr(f"{Path.cwd().resolve()} is not within a got repository")