def METHOD_NAME(self):
    """
    test ssh when --pre-flight is passed to salt-ssh
    to ensure the script runs successfully passing some args
    """
    self._create_roster(pre_flight_script_args="foobar test")
    # make sure we previously ran a command so the thin dir exists
    self.run_function("test.ping", wipe=False)
    assert not os.path.exists(self.test_script)
    assert self.run_function(
        "test.ping", ssh_opts="--pre-flight", roster_file=self.roster, wipe=False
    )
    assert os.path.exists(self.test_script)