'Slugs should not collide with reserved URL patterns'

def test_invalid_reserved_term_slug(self):

    self.client.login(username='admin', password='testpass')
    data = new_document_data()
    reserved_slugs = ('ckeditor_config.js', 'watch-ready-for-review', 'unwatch-ready-for-review', 'watch-approved', 'unwatch-approved', '.json', 'new', 'all', 'preview-wiki-content', 'category/10', 'needs-review/technical', 'needs-review/', 'feeds/atom/all/', 'feeds/atom/needs-review/technical', 'feeds/atom/needs-review/', 'tag/tasty-pie')
    for term in reserved_slugs:
        data['title'] = ('invalid    with    %s' % term)
        data['slug'] = term
        response = self.client.post(reverse('wiki.create'), data)
        self.assertContains(response, 'The    slug    provided    is    not    valid.')
