def METHOD_NAME(self, expected):
    events = self.get_events_wotime()
    if events != expected:
        self.fail(
            "events did not match expectation; got:\n%s\nexpected:\n%s"
            % (pprint.pformat(events), pprint.pformat(expected)))