'Create freebayes repository and upload only freebayes.xml. This should result in an error message and invalid tool.'

def test_0005_ensure_existence_of_repository_and_category(self):

    self.create_category(name=category_name, description=category_description)
    self.login(email=common.test_user_1_email, username=common.test_user_1_name)
    category = self.test_db_util.get_category_by_name(category_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):
        self.upload_file(repository, filename='bismark/bismark.tar', filepath=None, valid_tools_only=False, uncompress_file=True, remove_repo_files_not_in_tar=False, commit_message='Uploaded    bismark    tarball.', strings_displayed=[], strings_not_displayed=[])
        self.upload_file(repository, filename='bismark/bismark_methylation_extractor.xml', filepath=None, valid_tools_only=False, uncompress_file=False, remove_repo_files_not_in_tar=False, commit_message='Uploaded    an    updated    tool    xml.', strings_displayed=[], strings_not_displayed=[])
