Exemplo n.º 1
0
 def test__lessThan(self):
     data = Row(index='modified',
               operator='_lessThan',
               values='2010/03/18')
     parsed = queryparser._lessThan(MockSite(), data)
     expected = {'modified': {'query': '2010/03/18', 'range': 'max'}}
     self.assertEqual(parsed, expected)
Exemplo n.º 2
0
 def test__lessThan(self):
     data = Row(
         index='modified',
         operator='_lessThan',
         values='2010/03/18'
     )
     parsed = queryparser._lessThan(MockSite(), data)
     expected = {'modified': {'query': '2010/03/18', 'range': 'max'}}
     self.assertEqual(parsed, expected)