def test_attribute_access():
 can_compile(u'(. foo bar baz)')
 can_compile(u'(. foo [bar] baz)')
 can_compile(u'(. foo bar [baz] [0] quux [frob])')
 can_compile(u'(. foo bar [(+ 1 2 3 4)] quux [frob])')
 cant_compile(u'(. foo bar :baz [0] quux [frob])')
 cant_compile(u'(. foo bar baz (0) quux [frob])')
 cant_compile(u'(. foo bar baz [0] quux {frob})')

def test_attribute_access ( ) : can_compile ( u'(. foo bar baz)' ) can_compile ( u'(. foo [bar] baz)' ) can_compile ( u'(. foo bar [baz] [0] quux [frob])' ) can_compile ( u'(. foo bar [(+ 1 2 3 4)] quux [frob])' ) cant_compile ( u'(. foo bar :baz [0] quux [frob])' ) cant_compile ( u'(. foo bar baz (0) quux [frob])' ) cant_compile ( u'(. foo bar baz [0] quux {frob})' )
ensure attribute access compiles correctly .