How to Create Proper Python Unit Test for DAZL

Thank you very much! I’ll try to run with the given examples!

Edit3: Currently we have a test that runs locally ok. (I manually executed the lines in Setup.daml as conn.upload_package does not seem to execute the init-script.) However, when I try to run it in github as a presubmit action, it runs into an error like this:

    with testing.sandbox(project_root=None, version='2.0.0') as sb:
  File "BAZEL_DIRECTORYSTUFF/test.runfiles/pip_pypi__dazl/dazl/testing/_sandbox.py", line 126, in __enter__
    self.start()
  File "BAZEL_DIRECTORYSTUFF/test.runfiles/pip_pypi__dazl/dazl/testing/_sandbox.py", line 94, in start
    self._process = subprocess.Popen(
  File "BAZEL_DIRECTORYSTUFF/external/hermetic_python_install/bazel_install/python-3.8.13/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "BAZEL_DIRECTORYSTUFF/hermetic_python_install/bazel_install/python-3.8.13/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'daml'

Is there a recommended way to set it up properly so that it would succeed?