Example #1
0
 def test_parse_string_to_date(self):
     expected_expression = \
         sqla_op.gt(self.model._updated,
                    str_to_date('Sun, 06 Nov 1994 08:49:37 GMT'))
     r = parse('_updated > "Sun, 06 Nov 1994 08:49:37 GMT"', self.model)
     self.assertEqual(type(r), list)
     self.assertTrue(len(r) == 1)
     self.assertTrue(expected_expression.compare(r[0]))
Example #2
0
 def test_parse_string_to_date(self):
     expected_expression = \
         sqla_op.gt(self.model._updated,
                    str_to_date('Sun, 06 Nov 1994 08:49:37 GMT'))
     r = parse('_updated > "Sun, 06 Nov 1994 08:49:37 GMT"', self.model)
     self.assertEqual(type(r), list)
     self.assertTrue(len(r) == 1)
     self.assertTrue(expected_expression.compare(r[0]))
Example #3
0
 def test_gt(self):
     expected_expression = sqla_op.gt(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]))
Example #4
0
 def test_gt(self):
     expected_expression = sqla_op.gt(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]))