I\'m writing a bunch of tests in pytest, many of which take the form (pseudo-code):
def test1(self, ...): expected_events = do_thing1_that_should_generate