cubicweb/web/test/unittest_webconfig.py
branch3.26
changeset 12268 d84bc85f7f70
parent 12267 4ec56c0bcc5c
child 12315 599a144f5b25
equal deleted inserted replaced
12267:4ec56c0bcc5c 12268:d84bc85f7f70
    56     def test_locate_all_files(self):
    56     def test_locate_all_files(self):
    57         wdocfiles = list(self.config.locate_all_files('toc.xml'))
    57         wdocfiles = list(self.config.locate_all_files('toc.xml'))
    58         for fpath in wdocfiles:
    58         for fpath in wdocfiles:
    59             self.assertTrue(path.exists(fpath), fpath)
    59             self.assertTrue(path.exists(fpath), fpath)
    60         for expected in [path.join('cubes', 'file', 'wdoc', 'toc.xml'),
    60         for expected in [path.join('cubes', 'file', 'wdoc', 'toc.xml'),
    61                          path.join('cubes', 'shared', 'wdoc', 'toc.xml')]:
    61                          path.join('cubicweb', 'web', 'wdoc', 'toc.xml')]:
    62             for fpath in wdocfiles:
    62             for fpath in wdocfiles:
    63                 if fpath.endswith(expected):
    63                 if fpath.endswith(expected):
    64                     break
    64                     break
    65             else:
    65             else:
    66                 raise AssertionError('%s not found in %s' % (expected, wdocfiles))
    66                 raise AssertionError('%s not found in %s' % (expected, wdocfiles))