def test_ast_expression_basics():
 code = can_compile(u'(foo bar)').body[0]
 tree = ast.Expr(value=ast.Call(func=ast.Name(id=u'foo', ctx=ast.Load()), args=[ast.Name(id=u'bar', ctx=ast.Load())], keywords=[], starargs=None, kwargs=None))
 _ast_spotcheck(u'value.func.id', code, tree)

def test_ast_expression_basics ( ) : code = can_compile ( u'(foo bar)' ) . body [ 0 ] tree = ast . Expr ( value = ast . Call ( func = ast . Name ( id = u'foo' , ctx = ast . Load ( ) ) , args = [ ast . Name ( id = u'bar' , ctx = ast . Load ( ) ) ] , keywords = [ ] , starargs = None , kwargs = None ) ) _ast_spotcheck ( u'value.func.id' , code , tree )
ensure basic ast expression conversion works .