#NEWLINE# def test__get__with_inst( ) : #NEWLINE# #INDENT# def wrapped( inst ) : #NEWLINE# #INDENT# return 'a' #NEWLINE# #UNINDENT# decorator = reify ( wrapped ) #NEWLINE# inst = Dummy ( ) #NEWLINE# result = decorator . __get__ ( inst ) #NEWLINE# assert ( result == 'a' ) #NEWLINE# assert ( inst . __dict__ [ 'wrapped' ] == 'a' )