Add test from parse_clause with nested generator

issue5883
review26661002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-09-20 09:52:25 +02:00
1 parent fdce24fc3b
commit 0951bd03e9
1 file changed
+5
+5
View File
@@ -1470,6 +1470,11 @@ def test_parse_clause():
assert rlist(dom.parse_clause([('Reference', None, ['foo', 'bar'])])) == [
('reference', 'in', ['foo', 'bar']),
]
assert rlist(dom.parse_clause(['OR',
('Name', None, 'John'), ('Name', None, 'Jane')])) == ['OR',
('name', 'ilike', '%John%'),
('name', 'ilike', '%Jane%'),
]
assert rlist(dom.parse_clause([('Many2One', None, 'John')])) == [
('many2one', 'ilike', '%John%'),
]