'Search for and install the repositories with BWA tools, and verify that this reinstalls emboss_datatypes and reactivates filtering.'

def test_0060_search_for_bwa_tools(self):

    bwa_color_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_color_repository_name, common.test_user_1_name)
    bwa_base_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_base_repository_name, common.test_user_1_name)
    bwa_base_revision = self.get_repository_tip(bwa_base_repository)
    bwa_color_revision = self.get_repository_tip(bwa_color_repository)
    self.search_for_valid_tools(search_fields={'tool_id': 'bwa'}, exact_matches=False, from_galaxy=True, strings_displayed=['bwa_color_0090', 'bwa_base_0090', bwa_base_revision, bwa_color_revision])
    strings_displayed = ['freebayes_0090', 'emboss_0090', 'filtering_0090']
    strings_displayed.extend(['bwa_color_0090', 'bwa_base_0090'])
    strings_displayed.extend(['bwa', 'Handle', 'tool    dependencies'])
    repositories_to_install = [bwa_color_repository, bwa_base_repository]
    self.install_repositories_from_search_results(repositories_to_install, install_repository_dependencies='True', install_tool_dependencies=False, new_tool_panel_section_label='bwa_1090', strings_displayed=strings_displayed)
    installed_repositories = [(emboss_repository_name, common.test_user_1_name), (filtering_repository_name, common.test_user_1_name), (bwa_color_repository_name, common.test_user_1_name), (bwa_base_repository_name, common.test_user_1_name), (emboss_datatypes_repository_name, common.test_user_1_name), (freebayes_repository_name, common.test_user_1_name)]
    strings_displayed = ['emboss_datatypes_0090', 'filtering_0090', 'emboss_0090', 'bwa_color_0090', 'bwa_base_0090', 'freebayes_0090']
    self.display_galaxy_browse_repositories_page(strings_displayed=strings_displayed)
    self.verify_installed_repositories(installed_repositories)
