#NEWLINE# @ dec . slow #NEWLINE# def test_obj_fail( self ) : #NEWLINE# #INDENT# code = '\n               py::object name = "c";\n               return_val = a.attr(name);\n               ' #NEWLINE# assert_raises ( AttributeError , code . generic_attr , code , [ 'a' ] )