'Reupload the tool_dependencies.xml file to bwa_tool_dependency_0440.'

def test_0065_reupload_bwa_tool_dependency_definition(self):

    '\n                                We    are    at    tool    dependencies,    step    3    -    Add    the    same    tool_dependencies.xml    file    to    bwa_tool_dependency_0440,    and    make    sure\n                                that    bwa_tool_dependency_0440    still    has    a    single    installable    revision    0.\n                                '
    repository = self.test_db_util.get_repository_by_name_and_owner(bwa_tool_dependency_repository_name, common.test_user_1_name)
    old_changeset_revision = self.get_repository_tip(repository)
    self.upload_file(repository, filename='bwa/complex/tool_dependencies.xml', filepath=None, valid_tools_only=True, uncompress_file=True, remove_repo_files_not_in_tar=False, commit_message='Uploaded    package    tool    dependency    definition.', strings_displayed=[], strings_not_displayed=[])
    new_changeset_revision = self.get_repository_tip(repository)
    metadata_record = self.get_repository_metadata_by_changeset_revision(repository, old_changeset_revision)
    assert (metadata_record is None), ('The    revision    of    %s    that    does    not    contain    tool_dependencies.xml    should    not    be    downloadable,    but    is.' % repository.name)
    metadata_record = self.get_repository_metadata_by_changeset_revision(repository, new_changeset_revision)
    assert metadata_record.downloadable, ('The    revision    of    %s    that    contains    tool_dependencies.xml    is    not    downloadable.' % repository.name)
    assert (len(repository.downloadable_revisions) == 1), ('Repository    %s    has    %d    downloadable    revisions,    expected    1.' % (repository.name, len(repository.downloadable_revisions)))
