'Test string representations of the constraints.'

def test_constr_str(self):

    constr = (self.x <= self.x)
    self.assertEqual(repr(constr), ('LeqConstraint(%s,    %s)' % (repr(self.x), repr(self.x))))
    constr = (self.x <= (2 * self.x))
    self.assertEqual(repr(constr), ('LeqConstraint(%s,    %s)' % (repr(self.x), repr((2 * self.x)))))
    constr = ((2 * self.x) >= self.x)
    self.assertEqual(repr(constr), ('LeqConstraint(%s,    %s)' % (repr(self.x), repr((2 * self.x)))))
