def METHOD_NAME(path, expected):
    if expected is None:
        try:
            expected = bool(set(_CONTAINS_POTENTIAL_PROJECT) & set(os.listdir(path)))
        except OSError:
            expected = False
    assert _is_potential_project(path) == expected