Mercurial > piecrust2
comparison tests/test_baking_baker.py @ 569:34e57d4b97e2
tests: Fix broken unit test.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Oct 2015 23:07:56 -0700 |
parents | 6b6c5442c790 |
children | f987b29d6fab |
comparison
equal
deleted
inserted
replaced
568:6b6c5442c790 | 569:34e57d4b97e2 |
---|---|
43 assert app.config.get('site/pretty_urls') == pretty | 43 assert app.config.get('site/pretty_urls') == pretty |
44 | 44 |
45 for site_root in ['/', '/whatever/', '/~johndoe/']: | 45 for site_root in ['/', '/whatever/', '/~johndoe/']: |
46 app.config.set('site/root', urllib.parse.quote(site_root)) | 46 app.config.set('site/root', urllib.parse.quote(site_root)) |
47 baker = PageBaker(app, '/destination') | 47 baker = PageBaker(app, '/destination') |
48 path = baker.getOutputPath(site_root + uri) | 48 path = baker.getOutputPath(urllib.parse.quote(site_root) + uri) |
49 expected = os.path.normpath( | 49 expected = os.path.normpath( |
50 os.path.join('/destination', expected)) | 50 os.path.join('/destination', expected)) |
51 assert expected == path | 51 assert expected == path |
52 | 52 |
53 | 53 |