#NEWLINE# def test_reprhandler( ) : #NEWLINE# #INDENT# a = A ( ) #NEWLINE# s = reprhandler ( a . foo ) #NEWLINE# assert ( s == '<handler[*][foo] (A.foo)>' ) #NEWLINE# f = ( lambda : None ) #NEWLINE# pytest . raises ( AttributeError , reprhandler , f )