def METHOD_NAME(self):
    """
    test shell disabled output for templates (python_shell=False is the default
    beginning with the 2017.7.0 release).
    """
    state_name = "template_shell_disabled"
    state_filename = state_name + ".sls"
    state_file = os.path.join(RUNTIME_VARS.BASE_FILES, state_filename)
    # the result of running self.cmd not in a shell
    disabled_ret = (
        "first second third | wc -l ; export SALTY_VARIABLE=saltines "
        "&& echo $SALTY_VARIABLE ; echo duh &> /dev/null"
    )
    ret_key = "test_|-shell_enabled_|-{}_|-configurable_test_state".format(
        disabled_ret
    )
    try:
        with salt.utils.files.fopen(state_file, "w") as fp_:
            fp_.write(
                textwrap.dedent(
                    """\
            {{% set shell_disabled = salt['cmd.run']("{0}") %}}
            shell_enabled:
              test.configurable_test_state:
                - name: '{{{{ shell_disabled }}}}'
            """.format(
                        self.cmd
                    )
                )
            )
        ret = self.run_function("state.sls", [state_name])
        self.assertEqual(ret[ret_key]["name"], disabled_ret)
    finally:
        os.remove(state_file)