'Verify the locale list renders all locales.'

def test_locale_list(self):

    l = LocaleFactory(locale='es')
    leader = UserFactory()
    l.leaders.add(leader)
    reviewer = UserFactory()
    l.reviewers.add(reviewer)
    editor = UserFactory()
    l.editors.add(editor)
    r = self.client.get(reverse('wiki.locale_details', args=[l.locale]))
    eq_(r.status_code, 200)
    doc = pq(r.content)
    leaders = doc('ul.leaders    >    li')
    eq_(1, len(leaders))
    assert (leader.profile.name in leaders.text())
    reviewers = doc('ul.reviewers    >    li')
    eq_(1, len(reviewers))
    assert (reviewer.profile.name in reviewers.text())
    editors = doc('ul.editors    >    li')
    eq_(1, len(editors))
    assert (editor.profile.name in editors.text())
