diff tests/test_baking_baker.py @ 11:617191dec18e

Fixes for Windows, make `findPagePath` return a ref path.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 18 Aug 2014 16:47:44 -0700
parents f5ca5c5bed85
children 7e44f6092a1d
line wrap: on
line diff
--- a/tests/test_baking_baker.py	Sun Aug 17 21:18:48 2014 -0700
+++ b/tests/test_baking_baker.py	Mon Aug 18 16:47:44 2014 -0700
@@ -1,3 +1,4 @@
+import os.path
 import pytest
 from piecrust.baking.baker import PageBaker
 from .mockutil import get_mock_app
@@ -36,6 +37,7 @@
     baker = PageBaker(app, '/destination')
     sub_uri = baker.getOutputUri(uri, page_num)
     path = baker.getOutputPath(sub_uri)
-    expected = '/destination/' + expected
+    expected = os.path.normpath(
+            os.path.join('/destination', expected))
     assert expected == path