def METHOD_NAME(self):
    """test_as_dict"""
    expected_dict = {
        "items_per_page": 1,
        "page": 1,
        "total_items": 3,
        "items": [
            {
                "id": 3,
                "backend": "custom",
                "name": "R2spec",
                "homepage": "https://fedorahosted.org/r2spec/",
                "ecosystem": "https://fedorahosted.org/r2spec/",
                "regex": None,
                "version": None,
                "version_url": None,
                "versions": [],
                "stable_versions": [],
            }
        ],
    }
    create_project(self.session)
    page = self.query.paginate(order_by=models.Project.name, items_per_page=1)
    actual_dict = page.as_dict()
    actual_dict["items"][0].pop("updated_on")
    actual_dict["items"][0].pop("created_on")
    self.assertEqual(expected_dict, actual_dict)