Currently, the example demonstrate using the package's shell command to verify the existence of an entrypoint script.
Another way to perform the verification would be shutil.which, which is a platform-independent implementation of where (Windows) and which (Unix/Linux/macOS). Example:
def test_entrypoint():
assert shutil.which("example")