cubicweb/web/test/unittest_views_wdoc.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 20 Jun 2019 17:02:59 +0200
branch3.26
changeset 12664 2337c8c05657
parent 12337 04ff0d3ef1d3
permissions -rw-r--r--
[debian] Introduce python3-cubicweb and python3-cubicweb-pyramid binary packages This is the bare minimum to have a working cubicweb on python3. Further work is done in default branch.

from cubicweb.devtools import testlib


class WdocViewsTC(testlib.CubicWebTC):

    def test(self):
        with self.admin_access.web_request(fid='main') as req:
            page = req.view('wdoc')
        self.assertIn(u'Site documentation', page)
        # This part is renderend through rst extension (..winclude directive).
        self.assertIn(u'This web application is based on the CubicWeb knowledge management system',
                      page)


if __name__ == '__main__':
    import unittest
    unittest.main()