def test_setv_builtins():
 cant_compile(u'(setv None 42)')
 cant_compile(u'(defn get [&rest args] 42)')
 can_compile(u'(defclass A [] (defn get [self] 42))')
 can_compile(u'\n    (defclass A []\n      (defn get [self] 42)\n      (defclass B []\n        (defn get [self] 42))\n      (defn if* [self] 0))\n    ')

def test_setv_builtins ( ) : cant_compile ( u'(setv None 42)' ) cant_compile ( u'(defn get [&rest args] 42)' ) can_compile ( u'(defclass A [] (defn get [self] 42))' ) can_compile ( u'\n    (defclass A []\n      (defn get [self] 42)\n      (defclass B []\n        (defn get [self] 42))\n      (defn if* [self] 0))\n    ' )
ensure that assigning to a builtin fails .