def METHOD_NAME(self):
    scratch = {}
    counter = count(0)
    def gen_callback(name, retval=None):
        def callback(*args):
            scratch[name] = (next(counter), args)
            return retval
        return callback
    apply_target(gen_callback('target', 42),
                 args=(8, 16),
                 callback=gen_callback('callback'),
                 accept_callback=gen_callback('accept_callback'))
    assert scratch['target'] == (1, (8, 16))
    assert scratch['callback'] == (2, (42,))
    pa1 = scratch['accept_callback']
    assert pa1[0] == 0
    assert pa1[1][0] == os.getpid()
    assert pa1[1][1]
    # No accept callback
    scratch.clear()
    apply_target(gen_callback('target', 42),
                 args=(8, 16),
                 callback=gen_callback('callback'),
                 accept_callback=None)
    assert scratch == {
        'target': (3, (8, 16)),
        'callback': (4, (42,)),
    }