def METHOD_NAME(self):
    state = []
    def cb(*args, **kwargs):
        state.append((args, kwargs))
    # subscribe
    sub = self.subpt.subscribe(cb)
    self.assertTrue(isinstance(sub, subscription.Subscription))
    self.assertEqual(state, [])
    # deliver
    self.subpt.deliver(1, 2, a=3, b=4)
    self.assertEqual(state, [((1, 2), {"a": 3, "b": 4})])
    state.pop()
    # unsubscribe
    sub.unsubscribe()
    # don't receive events anymore
    self.subpt.deliver(3, 4)
    self.assertEqual(state, [])