Пример #1
0
 def test_lte(self):
     expected_expression = sqla_op.le(self.model.prog, 5)
     r = parse('prog <= 5', self.model)
     self.assertEqual(type(r), list)
     self.assertTrue(len(r) == 1)
     self.assertTrue(expected_expression.compare(r[0]))
Пример #2
0
 def test_lte(self):
     expected_expression = sqla_op.le(self.model.prog, 5)
     r = parse('prog <= 5', self.model)
     self.assertEqual(type(r), list)
     self.assertTrue(len(r) == 1)
     self.assertTrue(expected_expression.compare(r[0]))