Example #1
0
 def test_validate_bad_exprs_are_caught(self, expr):
     assert validate_and_parse(expr) == set()
Example #2
0
 def test_validate_complex_expr(self):
     expr = pythonize_boolean('((a&&b) || ((a&&!b) && (a || !c)))')
     assert validate_and_parse(expr) == set(['a', 'b', 'c'])
Example #3
0
 def test_validate_good_exprs(self, expr, pyexpr):
     print "expr: ", expr
     expr = pythonize_boolean(expr)
     assert validate_and_parse(expr) == set(['a', 'b'])