'Check the env.sh file for the appropriate contents.'

def test_0040_verify_env_sh_contents(self):

    '\n                                This    is    step    5    -    Verify    that    the    env.sh    file    for    package_rdkit_2012_12_1420    also    defines    the    variables    inherited    from    package_numpy_1_7_1420\n                                and    package_boost_1_53_1420.    Test    for    the    numpy    and    boost    tool    dependency    paths.\n                                '
    package_rdkit_repository = self.test_db_util.get_installed_repository_by_name_owner('package_rdkit_2012_12_1420', common.test_user_1_name)
    package_numpy_repository = self.test_db_util.get_installed_repository_by_name_owner('package_numpy_1_7_1420', common.test_user_1_name)
    package_boost_repository = self.test_db_util.get_installed_repository_by_name_owner('package_boost_1_53_1420', common.test_user_1_name)
    rdkit_env_sh = self.get_env_sh_path(tool_dependency_name='rdkit', tool_dependency_version='2012_12_1', repository=package_rdkit_repository)
    numpy_tool_dependency_path = self.get_tool_dependency_path(tool_dependency_name='numpy', tool_dependency_version='1.7.1', repository=package_numpy_repository)
    boost_tool_dependency_path = self.get_tool_dependency_path(tool_dependency_name='boost', tool_dependency_version='1.53.0', repository=package_boost_repository)
    rdkit_env_file_contents = open(rdkit_env_sh, 'r').read()
    if ((numpy_tool_dependency_path not in rdkit_env_file_contents) or (boost_tool_dependency_path not in rdkit_env_file_contents)):
        message = 'Environment    file    for    package_rdkit_2012_12_1420    does    not    contain    expected    path.'
        message += ('\nExpected:\n%s\n%s\nContents:\n%s' % (numpy_tool_dependency_path, boost_tool_dependency_path, rdkit_env_file_contents))
        raise AssertionError(message)
