'Create and populate package_lapack_3_4_1420.'

def test_0005_create_lapack_repository(self):

    '\n                                This    is    step    1    -    Create    repository    package_lapack_3_4_1420.\n\n                                All    tool    dependency    definitions    should    download    and    extract    a    tarball    containing    precompiled    binaries    from    the    local\n                                filesystem    and    install    them    into    the    path    specified    by    $INSTALL_DIR.\n                                '
    category = self.test_db_util.get_category_by_name(category_name)
    repository = self.get_or_create_repository(name=package_lapack_repository_name, description=package_lapack_repository_description, long_description=package_lapack_repository_long_description, owner=common.test_user_1_name, category_id=self.security.encode_id(category.id), strings_displayed=[])
    tool_dependency_path = self.generate_temp_path('1420_tool_dependency', additional_paths=['package_lapack_3_4_1420'])
    precompiled_binary_tarball = self.get_filename('1420_files/binary_tarballs/lapack.tar')
    edited_tool_dependency_filename = self.get_filename(filepath=tool_dependency_path, filename='tool_dependencies.xml')
    original_tool_dependency = self.get_filename('1420_files/package_lapack_3_4_1420/tool_dependencies.xml')
    tool_dependency_definition = open(original_tool_dependency, 'r').read().replace('__PATH__', precompiled_binary_tarball)
    open(edited_tool_dependency_filename, 'w').write(tool_dependency_definition)
    self.upload_file(repository, filename='tool_dependencies.xml', filepath=tool_dependency_path, valid_tools_only=True, uncompress_file=False, remove_repo_files_not_in_tar=False, commit_message='Populate    package_lapack_3_4_1420    with    tool    dependency    definitions.', strings_displayed=[], strings_not_displayed=[])
