def METHOD_NAME(self):
    try:
        self.assertEqual(self.dimension1, self.dimension3)
    except AssertionError as e:
        self.assertEqual(str(e), "Dimension parameter 'range' mismatched: (0, 1) != (0, 2)")