#NEWLINE# def test_class_predicate_custom_name( ) : #NEWLINE# #INDENT# class callableclass ( object ) : #NEWLINE# #INDENT# def __call__( self , arg ) : #NEWLINE# #INDENT# return ( arg == 'a' ) #NEWLINE# #UNINDENT# #UNINDENT# fn = callableclass ( ) #NEWLINE# p = Predicate ( fn , name = 'bar' ) #NEWLINE# assert ( p . name == 'bar' ) #NEWLINE# assert ( p . num_args == 1 ) #NEWLINE# assert p ( 'a' )