'Assure Revision.clean() defaults based_on value to the English
doc\'s current_revision when there is one.'

def test_correct_based_on_to_current_revision(self):

    en_rev = revision(is_approved=True)
    en_rev.save()
    de_doc = document(parent=en_rev.document, locale='de')
    de_doc.save()
    de_rev = revision(document=de_doc)
    de_rev.based_on = de_rev
    de_rev.clean()
    eq_(en_rev.document.current_revision, de_rev.based_on)
