def test_attribute_empty():
 cant_compile(u'.')
 cant_compile(u'foo.')
 cant_compile(u'.foo')
 cant_compile(u'"bar".foo')
 cant_compile(u'[2].foo')

def test_attribute_empty ( ) : cant_compile ( u'.' ) cant_compile ( u'foo.' ) cant_compile ( u'.foo' ) cant_compile ( u'"bar".foo' ) cant_compile ( u'[2].foo' )
ensure using dot notation with a non-expression is an error .