'Verify the display_order is respected.'

def test_display_order(self):

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