def METHOD_NAME(self):
    """Test that tf events are generated correctly."""
    gen_data = [
        ["test1", "test2"],
        ["test3"],
        ["test4", "test5", "test6"],
    ]
    event_sets = [
        [
            Event(event_type=event_type)
            for event_type in events
        ] for events in gen_data
    ]
    receipts = [
        TransactionReceipt(events=events)
        for events in event_sets
    ]
    extractor = ReceiptEventExtractor(receipts)
    events = extractor.extract([])
    self.assertEqual([], events)
    events = extractor.extract([
        EventSubscription(event_type="test1"),
        EventSubscription(event_type="test5"),
    ])
    self.assertEqual(events, [event_sets[0][0], event_sets[2][1]])