def METHOD_NAME(self):
    try:
        self.assertEqual(self.dimension4, self.dimension8)
    except AssertionError as e:
        self.assertEqual(str(e), "Dimension parameter 'values' mismatched: [] != ['a', 'b']")