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)
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)