コード例 #1
0
 def test__largerThan(self):
     data = Row(index='modified',
                operator='_largerThan',
                values='2010/03/18')
     parsed = queryparser._largerThan(MockSite(), data)
     expected = {'modified': {'query': '2010/03/18', 'range': 'min'}}
     self.assertEqual(parsed, expected)
コード例 #2
0
 def test__largerThan(self):
     data = Row(index='modified',
               operator='_largerThan',
               values='2010/03/18')
     parsed = queryparser._largerThan(MockSite(), data)
     expected = {'modified': {'query': '2010/03/18', 'range': 'min'}}
     self.assertEqual(parsed, expected)