'Verify is_listed is respected.'

def test_is_listed(self):

    forum1 = ForumFactory(is_listed=True)
    forum2 = ForumFactory(is_listed=True)
    r = get(self.client, 'forums.forums')
    eq_(200, r.status_code)
    doc = pq(r.content)
    eq_(2, len(doc('ol.forums    >    li')))
    forum1.is_listed = False
    forum1.save()
    r = get(self.client, 'forums.forums')
    eq_(200, r.status_code)
    doc = pq(r.content)
    eq_(1, len(doc('ol.forums    >    li')))
    eq_(forum2.name, doc('ol.forums    >    li    a').text())
