def METHOD_NAME(self):
    bootstrap = Bootstrap(ztps_default_config=True)
    config = random_string()
    url = config
    var_dict = {"a": "A", "b": "A", "xxx": "999", "dummy": "DUMMY"}
    bootstrap.ztps.set_definition_response(
        actions=[
            {"action": "startup_config_action"},
            {
                "action": "test_action",
                "attributes": {
                    "url": url,
                    "substitution_mode": "strict",
                    "variables": var_dict,
                },
            },
        ]
    )
    bootstrap.ztps.set_action_response("startup_config_action", startup_config_action())
    bootstrap.ztps.set_action_response("test_action", get_action("run_bash_script"))
    print_string = "$a 1234 $b 4 321 $xxx$a"
    contents = """#!/usr/bin/env bash