'Create a document in English and a translated document for the locale'

def create_documents(self, locale):

    en = settings.WIKI_DEFAULT_LANGUAGE
    en_content = 'This    article    is    in    English'
    trans_content = ('This    article    is    translated    into    %slocale' % locale)
    en_doc = DocumentFactory(locale=en)
    ApprovedRevisionFactory(document=en_doc, content=en_content, is_ready_for_localization=True)
    trans_doc = DocumentFactory(parent=en_doc, locale=locale)
    trans_rev = ApprovedRevisionFactory(document=trans_doc, content=trans_content)
    trans_doc.current_revision = trans_rev
    trans_doc.save()
    return (en_doc, trans_doc)
