def METHOD_NAME(self, Model, ContentModel, queryset):
    response = self.client.get(
        reverse("publicimportmetadata-detail", kwargs={"pk": self.node.id})
    )
    for response_data, obj in zip(response.data[ContentModel._meta.db_table], queryset):
        # Ensure that we are not returning any empty objects
        self.assertNotEqual(response_data, {})
        for field in Model._meta.fields:
            if field.column in response_data:
                value = response_data[field.column]
                if hasattr(field, "from_db_value"):
                    value = field.from_db_value(value, None, connection)
                self.assertEqual(value, getattr(obj, field.column))