'Slugs cannot contain /. but can be urlencoded'

@mock.patch.object(Site.objects, 'get_current')
def test_new_document_slugs(self, get_current):

    get_current.return_value.domain = 'testserver'
    data = new_document_data()
    error = 'The    slug    provided    is    not    valid.'
    data['slug'] = 'inva/lid'
    response = self.client.post(reverse('wiki.new_document'), data)
    self.assertContains(response, error)
    data['slug'] = 'no-question-marks?'
    response = self.client.post(reverse('wiki.new_document'), data)
    self.assertContains(response, error)
    data['slug'] = 'no+plus'
    response = self.client.post(reverse('wiki.new_document'), data)
    self.assertContains(response, error)
    data['slug'] = '%2Atesttest'
    response = self.client.post(reverse('wiki.new_document'), data)
    self.assertContains(response, error)
    data['slug'] = '%20testtest'
    response = self.client.post(reverse('wiki.new_document'), data)
    self.assertContains(response, error)
    data['slug'] = 'valid'
    response = self.client.post(reverse('wiki.new_document'), data)
    self.assertRedirects(response, reverse('wiki.document_revisions', args=[data['slug']], locale='en-US'))
