#NEWLINE# def filter( self , delegate , args = None ) : #NEWLINE# #INDENT# '\n        Returns the deferred, which can be fired in tests at will.\n        ' #NEWLINE# self . delegate = delegate #NEWLINE# self . filterCalls . append ( args ) #NEWLINE# self . deferred = defer . Deferred ( ) #NEWLINE# return args . deferred