def test_translated(self):

        en_d = DocumentFactory(title='A doc')
        ApprovedRevisionFactory(document=en_d)

        fr_d = DocumentFactory(parent=en_d, title='Une doc', locale='fr')

        # Without an approved revision, the en-US doc should be returned.
        obj = get_object_fallback(Document, 'A doc', 'fr')
        eq_(en_d, obj)

        # Approve a revision, then fr doc should be returned.
        ApprovedRevisionFactory(document=fr_d)
        obj = get_object_fallback(Document, 'A doc', 'fr')
        eq_(fr_d, obj)
If a localization of the English fallback exists, use it.
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/tests/test_parser.py/GetObjectFallbackTests.test_translated