#NEWLINE# def mock_journal( self , exists , key_names = None ) : #NEWLINE# #INDENT# self . mock_key_exists ( self . manifest . journal_key , exists ) #NEWLINE# if exists : #NEWLINE# #INDENT# self . database . fetchall = Mock ( return_value = ( ( key , ) for key in key ) )