'Create the 0060 category.'

def test_0005_ensure_category_exists(self):

    category = self.create_category(name=category_name, description=category_description)
    self.login(email=common.test_user_1_email, username=common.test_user_1_name)
    repository = self.get_or_create_repository(name=repository_name, description=repository_description, long_description=repository_long_description, owner=common.test_user_1_name, category_id=self.security.encode_id(category.id), strings_displayed=[])
    if self.repository_is_new(repository):
        workflow = open(self.get_filename('filtering_workflow/Workflow_for_0060_filter_workflow_repository.ga'), 'r').read()
        workflow = workflow.replace('__TEST_TOOL_SHED_URL__', self.url.replace('http://', ''))
        workflow_filepath = self.generate_temp_path('test_1060', additional_paths=['filtering_workflow'])
        if (not os.path.exists(workflow_filepath)):
            os.makedirs(workflow_filepath)
        open(os.path.join(workflow_filepath, workflow_filename), 'w+').write(workflow)
        self.upload_file(repository, filename=workflow_filename, filepath=workflow_filepath, valid_tools_only=True, uncompress_file=False, remove_repo_files_not_in_tar=False, commit_message='Uploaded    filtering    workflow.', strings_displayed=[], strings_not_displayed=[])
        self.upload_file(repository, filename='filtering/filtering_2.2.0.tar', filepath=None, valid_tools_only=True, uncompress_file=True, remove_repo_files_not_in_tar=False, commit_message='Uploaded    filtering    2.2.0.', strings_displayed=[], strings_not_displayed=[])
