#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_mapping_with_fallback( self ) : #NEWLINE# #INDENT# mapping = [ 'foo.bar' , 'zip' ] #NEWLINE# processor = self . get_processor ( ( lambda input , baton , * a , **kw : input ) , mapping = mapping , skip_if_nonexistent = False , input_fallback = 'fallback' ) #NEWLINE# result = ( yield processor . process ( dict ( ) ) ) #NEWLINE# self . assertEquals ( processor , dict ( zip = 'fallback' , foo = dict ( bar = 'fallback' ) ) )