'Tests that the `detail` view is working.'

@override_settings(CMS_TEMPLATES=[(TEMPLATE_NAME, '')])
def test_details_view(self):

    response = details(self.get_request(page=self.test_page), '')
    response.render()
    r = self.strip_rendered(response.content.decode('utf8'))
    self.assertEqual(r, ((((u'|' + self.test_data['text_main']) + u'|') + self.test_data['text_sub']) + u'|'))
