Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_is_python(python, expected):
assert pythonfinder.utils.path_is_known_executable(python)
assert pythonfinder.utils.looks_like_python(os.path.basename(python))
assert pythonfinder.utils.path_is_python(vistir.compat.Path(python))