'Create a complex repository dependency on bwa_package_0440 and upload it to bwa_tool_0440.'

def test_0040_create_dependency_on_bwa_package_repository(self):

    '\n                                We    are    at    complex    repository    dependencies,    step    3    -    Add    a    valid    complex    repository    dependency    tool_dependencies.xml    to\n                                bwa_base_0440    that    points    to    the    installable    revision    0    of    bwa_package_0440.\n                                '
    bwa_package_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_package_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)
    dependency_path = self.generate_temp_path('test_0440', additional_paths=['complex'])
    changeset_revision = self.get_repository_tip(bwa_package_repository)
    bwa_tuple = (self.url, bwa_package_repository.name, bwa_package_repository.user.username, changeset_revision)
    self.create_repository_dependency(repository=bwa_base_repository, repository_tuples=[bwa_tuple], filepath=dependency_path, prior_installation_required=True, complex=True, package='bwa', version='0.5.9')
