'Include finds document in the correct locale.'

def test_revision_include_locale(self):

    (_, _, p) = doc_rev_parser('English    content', 'Test    title')
    doc = pq(p.parse('[[Include:Test    title]]', locale='en-US'))
    eq_('English    content', doc.text())
    doc = pq(p.parse('[[I:Test    title]]', locale='fr'))
    eq_('English    content', doc.text())
    parent_rev = RevisionFactory()
    d = DocumentFactory(parent=parent_rev.document, title='Test    title', locale='fr')
    ApprovedRevisionFactory(document=d, content='French    content')
    doc = pq(p.parse('[[Include:Test    title]]', locale='fr'))
    eq_('French    content', doc.text())
