def test_install_condabin_conda_bat(self): with tempdir() as conda_temp_prefix: conda_prefix = abspath(sys.prefix) target_path = join(conda_temp_prefix, 'condabin', 'conda.bat') result = install_condabin_conda_bat(target_path, conda_prefix) assert result == Result.MODIFIED with open(target_path) as fh: created_file_contents = fh.read() remainder = created_file_contents with open(join(CONDA_PACKAGE_ROOT, 'shell', 'condabin', 'conda.bat')) as fh: original_contents = fh.read() assert remainder == original_contents result = install_condabin_conda_bat(target_path, conda_prefix) assert result == Result.NO_CHANGE