'Submitting the document form should update document. No new
revisions should be created.'

def test_translate_update_doc_only(self):

    add_permission(self.user, Document, 'change_document')
    rev_es = self._create_and_approve_first_translation()
    url = reverse('wiki.translate', locale='es', args=[self.d.slug])
    data = _translation_data()
    new_title = 'Un    nuevo    titulo'
    data['title'] = new_title
    data['form'] = 'doc'
    response = self.client.post(url, data)
    eq_(302, response.status_code)
    eq_('http://testserver/es/kb/un-test-articulo/edit?opendescription=1', response['location'])
    revisions = rev_es.document.revisions.all()
    eq_(1, revisions.count())
    d = Document.objects.get(id=rev_es.document.id)
    eq_(new_title, d.title)
