'Verify the tagged documents list view, even for duplicate tags
http://bugzil.la/871638'

@pytest.mark.xfail(reason='Requires    migrations')
@pytest.mark.tags
def test_tag_list_duplicates(self):

    en_tag = DocumentTag(name='CSS    Reference', slug='css-reference')
    en_tag.save()
    fr_tag = DocumentTag(name=u'CSS    R\xe9f\xe9rence', slug='css-reference_1')
    fr_tag.save()
    self.doc.tags.add(en_tag)
    self.doc.tags.add(fr_tag)
    response = self.client.get(reverse('wiki.tag', args=[en_tag.name]))
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(1, len(doc('#document-list    ul.document-list    li')))
