'When the title of an article is edited in an iframe, the change is
ignored.'

def test_slug_change_ignored_for_iframe(self):

    self.client.login(username='admin', password='testpass')
    new_slug = 'some_new_slug'
    rev = revision(is_approved=True, save=True)
    old_slug = rev.document.slug
    data = new_document_data()
    data.update({'title': rev.document.title, 'slug': new_slug, 'form': 'rev'})
    self.client.post(('%s?iframe=1' % reverse('wiki.edit', args=[rev.document.slug])), data)
    eq_(old_slug, Document.objects.get(slug=rev.document.slug, locale=rev.document.locale).slug)
    assert ('REDIRECT' not in Document.objects.get(slug=old_slug).html)
