'Bug 976071 - Tags should be case insensitive
https://bugzil.la/976071'

def test_case_insensitive_tags(self):

    lower_tag = DocumentTag.objects.create(name='foo', slug='foo')
    lower_tag.save()
    doc = Document.objects.get(pk=1)
    doc.tags.set(lower_tag)
    response = self.client.get(reverse('wiki.tag', args=['foo']))
    ok_((doc.slug in response.content.decode('utf-8')))
    response = self.client.get(reverse('wiki.tag', args=['Foo']))
    ok_((doc.slug in response.content.decode('utf-8')))
