def __eq__(self, other):
return self.metric_type == other.metric_type andself.event_expression == other.event_expression<EOL>
>>> e1 = EventExpression('request')
>>> m1 = MetricExpression('sum', e1)
>>> m2 = MetricExpression('sum', e1)
>>> m1 == m2
True