self.assertEqual(repr(self.one), 'Constant(1)')
self.assertEqual(repr(self.expr), "Expression({'x': 1, 'y': -2}, 3)")
- @unittest.expectedFailure
def test_fromstring(self):
self.assertEqual(Expression.fromstring('x'), self.x)
self.assertEqual(Expression.fromstring('-x'), -self.x)