#NEWLINE# def test_predicate_predicate_custom_name( ) : #NEWLINE# #INDENT# def mypred( x ) : #NEWLINE# #INDENT# return ( x == 'a' ) #NEWLINE# #UNINDENT# p = Predicate ( Predicate ( mypred , name = 'foo' ) ) #NEWLINE# assert ( mypred . name == 'foo' ) #NEWLINE# assert ( p . num_args == 1 ) #NEWLINE# assert p ( 'a' )