def compare_to_mathics(self, mathics_expr, sympy_expr, **kwargs): self.assertEqual(mathics_expr, mathics.from_sympy(sympy_expr, **kwargs))
def compare(self, mathics_expr, sympy_expr): self.assertEqual(mathics_expr.to_sympy(), sympy_expr) self.assertEqual(mathics_expr, mathics.from_sympy(sympy_expr))