'Create freebayes repository and upload only freebayes.xml.'

def test_0010_create_freebayes_repository_and_upload_tool_xml(self):

    '\n                                We    are    at    step    1    -    Create    repository    freebayes_0020    and    upload    only    the    tool    XML.\n                                Uploading    only    the    tool    XML    file    should    result    in    an    invalid    tool    and    an    error    message    on\n                                upload,    as    well    as    on    the    manage    repository    page.\n                                '
    self.login(email=common.test_user_1_email, username=common.test_user_1_name)
    category = self.test_db_util.get_category_by_name('Test    0010    Repository    With    Tool    Dependencies')
    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=[])
    self.upload_file(repository, filename='freebayes/freebayes.xml', filepath=None, valid_tools_only=False, uncompress_file=False, remove_repo_files_not_in_tar=False, commit_message='Uploaded    the    tool    xml.', strings_displayed=['Metadata    may    have    been    defined', 'This    file    requires    an    entry', 'tool_data_table_conf'], strings_not_displayed=[])
    self.display_manage_repository_page(repository, strings_displayed=['Invalid    tools'], strings_not_displayed=['Valid    tools'])
    tip = self.get_repository_tip(repository)
    strings_displayed = ['requires    an    entry', 'tool_data_table_conf.xml']
    self.check_repository_invalid_tools_for_changeset_revision(repository, tip, strings_displayed=strings_displayed)
