'Check draft revision is discarded when submitting a revision
A user can have only one Draft revision for each translated document. The draft revision
should be deleted automatically when the user submit any revision in the document.'

def test_draft_revision_discarded_when_submitting_revision(self):

    draft = DraftRevisionFactory(creator=self.u)
    doc = draft.document
    locale = draft.locale
    trans_url = reverse('wiki.translate', locale=locale, args=[doc.slug])
    data = {'title': 'Un    Test    Articulo', 'slug': 'un-test-articulo', 'keywords': 'keyUno,    keyDos,    keyTres', 'summary': 'lipsumo', 'content': 'loremo    ipsumo    doloro    sito    ameto', 'form': 'both'}
    self.client.post(trans_url, data)
    draft_revision = DraftRevision.objects.filter(id=draft.id)
    eq_(False, draft_revision.exists())
