def METHOD_NAME(self, data, partial, dest, source, protocol):
    assert self.expecting, "Got a packet when not expecting anymore."
    expect = self.expecting.pop(0)
    localVariables = locals()
    params = {
        "partial": partial,
        "dest": dest,
        "source": source,
        "protocol": protocol,
    }
    assert expect == (data, params), "Expected {!r}, got {!r}".format(
        expect, (data, params)
    )