'Check Draft Revision is discarded
If a user clicks on Discard button in the translation page, the draft revision
should be deleted'

def test_discard_draft_revision(self):

    draft = DraftRevisionFactory(creator=self.u)
    doc = draft.document
    trans_url = reverse('wiki.translate', locale=draft.locale, args=[doc.slug])
    draft_request = {'discard': 'Discard'}
    restore_draft_resp = self.client.get(trans_url, draft_request)
    eq_(200, restore_draft_resp.status_code)
    draft = DraftRevision.objects.filter(id=draft.id)
    eq_(False, draft.exists())
