Esempio n. 1
0
 def test_with_operator_fancy_name(self):
     param = "field_with__underscore__eq"
     name, operator = qsqla.split_operator(param)
     self.assertEquals(name, "field_with__underscore")
     self.assertEquals(operator, "eq")
Esempio n. 2
0
 def test_with_operator(self):
     param = "field__eq"
     name, operator = qsqla.split_operator(param)
     self.assertEquals(name, "field")
     self.assertEquals(operator, "eq")