'Document history should have a category on page'

def test_history_category_appears(self):

    category = CATEGORIES[1]
    r = ApprovedRevisionFactory(content='Some    text.', document__category=category[0])
    response = get(self.client, 'wiki.document_revisions', args=[r.document.slug])
    eq_(200, response.status_code)
    self.assertContains(response, category[1])
