def test_ast_valid_unary_op():
 can_compile(u'(not 2)')
 can_compile(u'(~ 1)')

def test_ast_valid_unary_op ( ) : can_compile ( u'(not 2)' ) can_compile ( u'(~ 1)' )
make sure ast can compile valid unary operator .