[test] Add a trivial test for "wdoc" view
We just make sure it gets rendered without errors (which wasn't the case
before the previous patch).
It does not work on Python 3; this will be fixed in next changeset.
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)
if __name__ == '__main__':
import unittest
unittest.main()