'When the title of an article is edited, a redirect is made.'

def test_retitling(self):

    new_title = 'Some    New    Title'
    r = ApprovedRevisionFactory()
    d = r.document
    old_title = d.title
    data = new_document_data()
    data.update({'title': new_title, 'slug': d.slug, 'form': 'doc'})
    self.client.post(reverse('wiki.edit_document', args=[d.slug]), data)
    eq_(new_title, Document.objects.get(id=d.id).title)
    assert Document.objects.get(title=old_title).redirect_url()
