#NEWLINE# def mock_journal( self , exists , key_names = None ) : #NEWLINE# #INDENT# key = self . mock_key_exists ( self . manifest . journal_key , exists ) #NEWLINE# if exists : #NEWLINE# #INDENT# key . get_contents_as_string = Mock ( return_value = json . dumps ( exists ) )