diff tests/test_baking_baker.py @ 29:7e44f6092a1d

More unit tests for output bake paths.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 19 Aug 2014 11:51:09 -0700
parents 617191dec18e
children 3471ffa059b2
line wrap: on
line diff
--- a/tests/test_baking_baker.py	Tue Aug 19 11:50:51 2014 -0700
+++ b/tests/test_baking_baker.py	Tue Aug 19 11:51:09 2014 -0700
@@ -14,6 +14,8 @@
         ('foo/bar', 2, True, 'foo/bar/2/index.html'),
         ('foo.ext', 1, True, 'foo.ext/index.html'),
         ('foo.ext', 2, True, 'foo.ext/2/index.html'),
+        ('foo/bar.ext', 1, True, 'foo/bar.ext/index.html'),
+        ('foo/bar.ext', 2, True, 'foo/bar.ext/2/index.html'),
         ('foo.bar.ext', 1, True, 'foo.bar.ext/index.html'),
         ('foo.bar.ext', 2, True, 'foo.bar.ext/2/index.html'),
         # Ugly URLs
@@ -25,6 +27,8 @@
         ('foo/bar', 2, False, 'foo/bar/2.html'),
         ('foo.ext', 1, False, 'foo.ext'),
         ('foo.ext', 2, False, 'foo/2.ext'),
+        ('foo/bar.ext', 1, False, 'foo/bar.ext'),
+        ('foo/bar.ext', 2, False, 'foo/bar/2.ext'),
         ('foo.bar.ext', 1, False, 'foo.bar.ext'),
         ('foo.bar.ext', 2, False, 'foo.bar/2.ext')
         ])