'Create repositories freebayes_0040 and filtering_0040.'

def test_0030_create_repositories_from_0040_series(self):

    category = self.create_category(name=category_0040_name, description='')
    repository = self.get_or_create_repository(name='freebayes_0040', description="Galaxy's    freebayes    tool", long_description="Long    description    of    Galaxy's    freebayes    tool", owner=common.test_user_1_name, category_id=self.security.encode_id(category.id), strings_displayed=[])
    if self.repository_is_new(repository):
        self.upload_file(repository, filename='freebayes/freebayes.tar', filepath=None, valid_tools_only=True, uncompress_file=True, remove_repo_files_not_in_tar=False, commit_message='Uploaded    the    tool    tarball.', strings_displayed=[], strings_not_displayed=[])
        repository = self.get_or_create_repository(name='filtering_0040', description=filtering_repository_description, long_description=filtering_repository_long_description, owner=common.test_user_1_name, category_id=self.security.encode_id(category.id), strings_displayed=[])
        self.upload_file(repository, filename='filtering/filtering_1.1.0.tar', filepath=None, valid_tools_only=True, uncompress_file=True, remove_repo_files_not_in_tar=False, commit_message='Uploaded    the    tool    tarball    for    filtering    1.1.0.', strings_displayed=[], strings_not_displayed=[])
        repository = self.test_db_util.get_repository_by_name_and_owner('freebayes_0040', common.test_user_1_name)
        filtering_repository = self.test_db_util.get_repository_by_name_and_owner('filtering_0040', common.test_user_1_name)
        repository_dependencies_path = self.generate_temp_path('test_1340', additional_paths=['filtering'])
        repository_tuple = (self.url, repository.name, repository.user.username, self.get_repository_tip(repository))
        self.create_repository_dependency(repository=filtering_repository, repository_tuples=[repository_tuple], filepath=repository_dependencies_path)
        repository = self.test_db_util.get_repository_by_name_and_owner('filtering_0040', common.test_user_1_name)
        freebayes_repository = self.test_db_util.get_repository_by_name_and_owner('freebayes_0040', common.test_user_1_name)
        repository_dependencies_path = self.generate_temp_path('test_1340', additional_paths=['freebayes'])
        repository_tuple = (self.url, repository.name, repository.user.username, self.get_repository_tip(repository))
        self.create_repository_dependency(repository=freebayes_repository, repository_tuples=[repository_tuple], filepath=repository_dependencies_path)
