def test_missing(self): assert PROJECT_PARENT == _find_root(None, cwd=PROJECT_PARENT)
def test_none(self): assert PROJECT_ROOT == _find_root(None, cwd=ROOT)
def test_current(self): assert PROJECT_ROOT == _find_root(PROJECT_ROOT, cwd=ROOT)
def test_specified(self): os.chdir(PROJECT_PARENT) assert FILES == _find_root(FILES)