'Populate complex_dependency_test_4_0460.'

def test_0045_url_upload_to_complex_test(self):

    '\n                                This    is    step    9    -    Upload    to    complex_dependency_test_5_0460    using    the    url    hg://<tool    shed    url>/repos/user1/hg_subfolder_tool_dependency_0460.\n                                '
    url = ('hg://%s:%s/repos/user1/hg_subfolder_tool_dependency_0460' % (self.host, self.port))
    repository = self.test_db_util.get_repository_by_name_and_owner('complex_dependency_test_5_0460', common.test_user_1_name)
    package_repository = self.test_db_util.get_repository_by_name_and_owner('package_bwa_0_5_9_0460', common.test_user_1_name)
    self.upload_url(repository, url=url, filepath=None, valid_tools_only=True, uncompress_file=False, remove_repo_files_not_in_tar=True, commit_message='Uploaded    complex    repository    dependency    definition.', strings_displayed=[], strings_not_displayed=[])
    changeset_revision = self.get_repository_tip(package_repository)
    strings_displayed = ['package_bwa_0_5_9_0460', 'bwa', '0.5.9', 'package', changeset_revision]
    self.display_manage_repository_page(repository, strings_displayed=strings_displayed)
    self.display_repository_file_contents(repository, filename='tool_dependencies.xml', filepath='subfolder', strings_displayed=[changeset_revision])
