|
@@ -25,6 +25,7 @@ class _LeObjectTestCase(TestCase):
|
25
|
25
|
"hello \nnot\tin \nfoo":('hello', ' not in ', 'foo'),
|
26
|
26
|
'hello != bar':('hello', '!=', 'bar'),
|
27
|
27
|
'hello = "world>= <= != in not in"': ('hello', '=', '"world>= <= != in not in"'),
|
|
28
|
+ 'superior.parent = 13': ('superior.parent', '=', '13'),
|
28
|
29
|
}
|
29
|
30
|
for query, result in query_results.items():
|
30
|
31
|
res = _LeObject._split_filter(query)
|
|
@@ -42,6 +43,7 @@ class _LeObjectTestCase(TestCase):
|
42
|
43
|
'=',
|
43
|
44
|
'42',
|
44
|
45
|
'"hello" = world',
|
|
46
|
+ 'foo.bar = 15',
|
45
|
47
|
]
|
46
|
48
|
for query in invalid_queries:
|
47
|
49
|
with self.assertRaises(ValueError, msg='But the query was not valid : "%s"'%query):
|