def test_ast_bad_while():
 cant_compile(u'(while)')
 cant_compile(u'(while (True))')

def test_ast_bad_while ( ) : cant_compile ( u'(while)' ) cant_compile ( u'(while (True))' )
make sure ast cant compile invalid while .