'Verify that the generated env.sh contains the right data.'

def test_0055_verify_complex_tool_dependency(self):

    base_repository = self.test_db_util.get_installed_repository_by_name_owner(bwa_base_repository_name, common.test_user_1_name)
    tool_repository = self.test_db_util.get_installed_repository_by_name_owner(bwa_package_repository_name, common.test_user_1_name)
    env_sh_path = self.get_env_sh_path(tool_dependency_name='bwa', tool_dependency_version='0.5.9', repository=base_repository)
    assert os.path.exists(env_sh_path), ('env.sh    was    not    generated    in    %s    for    this    dependency.' % env_sh_path)
    contents = open(env_sh_path, 'r').read()
    if (tool_repository.installed_changeset_revision not in contents):
        raise AssertionError(('Installed    changeset    revision    %s    not    found    in    env.sh.\nContents    of    env.sh:    %s' % (tool_repository.installed_changeset_revision, contents)))
    if ('package_bwa_0_5_9_0100' not in contents):
        raise AssertionError(('Repository    name    package_bwa_0_5_9_0100    not    found    in    env.sh.\nContents    of    env.sh:    %s' % contents))
