def METHOD_NAME(self, transaction):
    """Test helper method to get all spans of a specific transaction"""
    return [span for span in self.events[SPAN] if span["transaction_id"] == transaction["id"]]