def main(argv=None):
    if argv is None:
        argv = sys.argv
    if len(argv) == 1:
        # No particular tests requested. Run the whole suite.
        args = [argv[0], "test", "acacia"]
    else:
        args = [argv[0], "test"] + argv[1:]

    # Ensure the local version of "acacia" is directly importable
    pkg_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
    sys.path.insert(0, pkg_dir)

    options = {}
    for name in dir(test_settings):
        if name == name.upper():
            options[name] = getattr(test_settings, name)
    settings.configure(**options)

    controller = management.ManagementUtility(args)
    controller.execute()
If there is an Origin header in the request, the
dataset/ETHPy150Open malcolmt/django-acacia/testing/runtests.py/main--crossover with--dataset/ETHPy150Open corydolphin/flask-cors/tests/decorator/test_origins.py/OriginsTestCase.test_defaults_with_origin