'Slugs cannot contain "$", but can contain "/".'

def test_invalid_slug(self):

    self.client.login(username='admin', password='testpass')
    data = new_document_data()
    data['title'] = 'valid    slug'
    data['slug'] = 'valid'
    response = self.client.post(reverse('wiki.create'), data)
    self.assertRedirects(response, reverse('wiki.document', args=[data['slug']], locale=settings.WIKI_DEFAULT_LANGUAGE))
    new_url = reverse('wiki.create')
    invalid_slugs = ['va/lid', 'inva$lid', 'inva?lid', 'inva%lid', '"invalid\'', 'in    valid']
    for invalid_slug in invalid_slugs:
        data['title'] = ('invalid    with    %s' % invalid_slug)
        data['slug'] = invalid_slug
        response = self.client.post(new_url, data)
        self.assertContains(response, 'The    slug    provided    is    not    valid.')
