def METHOD_NAME(self):
    PAGE_SIZE = 8
    self.counter = 0
    self.page_counts = 0
    class Data(ct.Structure):
        _fields_ = [("page_cnt", ct.c_ulonglong)]
    def cb(ctx, data, size):
        self.assertEqual(size, ct.sizeof(Data))
        event = ct.cast(data, ct.POINTER(Data)).contents
        self.page_counts += event.page_cnt
        self.counter += 1
    text = b"""