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