'Verify installation of blastxml_to_top_descr_0120 and blast_datatypes_0120.'

def test_0050_verify_repository_installation(self):

    '\n                                We    are    at    step    1a,    Galaxy    side.\n                                Check    that    the    blastxml_to_top_descr_0120    and    blast_datatypes_0120    repositories    installed    correctly,    and    that    there\n                                are    now    new    datatypes    in    the    registry    matching    the    ones    defined    in    blast_datatypes_0120.    Also    check    that\n                                blast_datatypes_0120    is    labeled    as    an    installed    repository    dependency    of    blastxml_to_top_descr_0120.\n                                '
    global repository_datatypes_count
    global base_datatypes_count
    tool_repository = self.test_db_util.get_installed_repository_by_name_owner(tool_repository_name, common.test_user_1_name)
    datatypes_repository = self.test_db_util.get_installed_repository_by_name_owner(datatypes_repository_name, common.test_user_2_name)
    current_datatypes = int(self.get_datatypes_count())
    expected_count = (base_datatypes_count + repository_datatypes_count)
    assert ((current_datatypes == base_datatypes_count) or (current_datatypes == expected_count)), ('Installing    %s    did    not    add    new    datatypes.    Expected:    %d.    Found:    %d' % ('blastxml_to_top_descr_0120', expected_count, current_datatypes))
    strings_displayed = ['Installed    repository    dependencies', 'user1', 'blast_datatypes_0120']
    strings_displayed.extend(['Valid    tools', 'BLAST    top    hit', 'Make    a    table', datatypes_repository.installed_changeset_revision])
    self.display_installed_repository_manage_page(tool_repository, strings_displayed=strings_displayed)
    strings_displayed = ['Datatypes', 'blastxml', 'blastdbp', 'blastdbn', 'BlastXml', 'BlastNucDb', 'BlastProtDb']
    strings_displayed.extend(['application/xml', 'text/html'])
    self.display_installed_repository_manage_page(datatypes_repository, strings_displayed=strings_displayed)
