'A translated document with no topic parent should by default use
the translation of its translation parent\'s topic parent.'

def test_default_topic_parents_for_translation(self):

    orig_pt = document(locale=settings.WIKI_DEFAULT_LANGUAGE, title='test    section', save=True)
    orig = document(locale=settings.WIKI_DEFAULT_LANGUAGE, title='test', parent_topic=orig_pt, save=True)
    trans_pt = document(locale='fr', title='le    test    section', parent=orig_pt, save=True)
    trans = document(locale='fr', title='le    test', parent=orig, save=True)
    ok_(trans.parent_topic)
    eq_(trans.parent_topic.pk, trans_pt.pk)
