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")
def test_with_operator(self): param = "field__eq" name, operator = qsqla.split_operator(param) self.assertEquals(name, "field") self.assertEquals(operator, "eq")