'Undelete the filtering_0000 repository and verify that it now has two downloadable revisions.'

def test_0115_undelete_filtering_repository(self):

    repository = self.test_db_util.get_repository_by_name_and_owner(repository_name, common.test_user_1_name)
    self.login(email=common.admin_email, username=common.admin_username)
    self.undelete_repository(repository)
    for metadata_revision in repository.metadata_revisions:
        self.test_db_util.refresh(metadata_revision)
    assert (True in [metadata.downloadable for metadata in repository.metadata_revisions])
    assert (len(repository.downloadable_revisions) == 2)
