#NEWLINE# def _make_document( self , **kwargs ) : #NEWLINE# #INDENT# defaults = { #NEWLINE# #INDENT# 'title' : ( 'How to make a pie from scratch with email ' + str ( time . time ( ) ) ) , #NEWLINE# 'category' : 10 , #NEWLINE# #UNINDENT# } #NEWLINE# defaults . update ( kwargs ) #NEWLINE# d = DocumentFactory ( ** defaults ) #NEWLINE# RevisionFactory ( document = d , is_approved = True ) #NEWLINE# d . save ( ) #NEWLINE# return d