equal
deleted
inserted
replaced
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)) |