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