def test_types(self):
        self.assertTrue(isinstance(self.min, MetricExpression))
        self.assertTrue(isinstance(self.max, MetricExpression))
        self.assertTrue(isinstance(self.sum + self.sum,
            CompoundMetricExpression))
        self.assertTrue(isinstance(self.sum + self.min,
            CompoundMetricExpression))
        self.assertTrue(isinstance(self.max + self.min,
            CompoundMetricExpression))

        m1 = self.sum
        m2 = self.min
        self.assertTrue(isinstance(m1 + m2, CompoundMetricExpression))
        self.assertTrue(isinstance(m2 - m1, CompoundMetricExpression))
        self.assertTrue(isinstance(m1 * m2, CompoundMetricExpression))
        self.assertTrue(isinstance(m1.__div__(m2), CompoundMetricExpression))
        self.assertTrue(isinstance(
            m1.__truediv__(m2), CompoundMetricExpression))
dataset/ETHPy150Open tsileo/cube-client/cube/tests/test_compound_metric_expression.py/TestCompoundMetricExpressions.test_types/swapped operands of `-`