text: import pytest
  import os
  import time
  
  
  @pytest.fixture(scope="module")
  def inst_dir():
      return "C:\\custom_location"
  
  
  @pytest.fixture(scope="module")
  def install(inst_dir):
      pytest.helpers.clean_env(inst_dir)
      pytest.helpers.run_command([pytest.INST_BIN, "/S", f"/install-dir={inst_dir}", "/master=cli_master", "/minion-name=cli_minion"])
      yield
      pytest.helpers.clean_env(inst_dir)
  
  
  def test_binaries_present(install, inst_dir):
      assert os.path.exists(f"{inst_dir}\\bin\\ssm.exe")
  
  
  def test_config_present(install):
      assert os.path.exists(f"{pytest.DATA_DIR}\\conf\\minion")
  
  
  def test_config_correct(install):
      # The config file should be the default config with master and minion set
      expected = [
          "# Default config from test suite line 1/6\n",
          "master: cli_master\n",
          "# Default config from test suite line 2/6\n",
          "id: cli_minion\n",
          "# Default config from test suite line 3/6\n",
          "# Default config from test suite line 4/6\n",
          "# Default config from test suite line 5/6\n",
          "# Default config from test suite line 6/6\n"
      ]
  
      with open(f"{pytest.DATA_DIR}\\conf\\minion") as f:
          result = f.readlines()
  
      assert result == expected
  
  