'Generate and upload a valid tool_dependencies.xml file that specifies package_bwa_0_5_9_0100.'

def test_0035_generate_complex_repository_dependency(self):

    base_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_base_repository_name, common.test_user_1_name)
    tool_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_package_repository_name, common.test_user_1_name)
    dependency_path = self.generate_temp_path('test_0100', additional_paths=['complex'])
    url = self.url
    name = 'package_bwa_0_5_9_0100'
    owner = 'user1'
    changeset_revision = self.get_repository_tip(tool_repository)
    repository_tuple = (url, name, owner, changeset_revision)
    self.create_repository_dependency(repository=base_repository, filepath=dependency_path, repository_tuples=[repository_tuple], complex=True, package='bwa', version='0.5.9')
    self.check_repository_dependency(base_repository, depends_on_repository=tool_repository)
    self.display_manage_repository_page(base_repository, strings_displayed=['bwa', '0.5.9', 'package', changeset_revision])
