'Create the 0000 category and upload the filtering repository to it, if necessary.'

def test_0005_ensure_repositories_and_categories_exist(self):

    self.login(email=common.admin_email, username=common.admin_username)
    category = self.create_category(name='Test    0000    Basic    Repository    Features    2', description='Test    Description    0000    Basic    Repository    Features    2')
    category = self.create_category(name='Test    0000    Basic    Repository    Features    1', description='Test    Description    0000    Basic    Repository    Features    1')
    self.login(email=common.test_user_1_email, username=common.test_user_1_name)
    repository = self.get_or_create_repository(name='filtering_0000', description="Galaxy's    filtering    tool", long_description="Long    description    of    Galaxy's    filtering    tool", owner=common.test_user_1_name, category_id=self.security.encode_id(category.id))
    if self.repository_is_new(repository):
        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    filtering    1.1.0    tarball.', strings_displayed=[], strings_not_displayed=[])
        self.upload_file(repository, filename='filtering/filtering_0000.txt', filepath=None, valid_tools_only=True, uncompress_file=False, remove_repo_files_not_in_tar=False, commit_message='Uploaded    readme    for    1.1.0', strings_displayed=[], strings_not_displayed=[])
        self.upload_file(repository, filename='filtering/filtering_2.2.0.tar', filepath=None, valid_tools_only=True, uncompress_file=True, remove_repo_files_not_in_tar=False, commit_message='Uploaded    filtering    2.2.0    tarball.', strings_displayed=[], strings_not_displayed=[])
        self.upload_file(repository, filename='readme.txt', filepath=None, valid_tools_only=True, uncompress_file=False, remove_repo_files_not_in_tar=False, commit_message='Uploaded    readme    for    2.2.0', strings_displayed=[], strings_not_displayed=[])
