summaryrefslogtreecommitdiffstats
path: root/tests/test_pages.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-10-06 08:28:54 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-10-12 08:30:06 (GMT)
commite58f4992c65aee35bc60281bf5d4b87dc0c33ba7 (patch)
tree04e12470847b77c39d33813f993e2a0f17bb2451 /tests/test_pages.py
parent72b19db226d874c13bbe8513ea832115fa780484 (diff)
downloadcombo-e58f4992c65aee35bc60281bf5d4b87dc0c33ba7.zip
combo-e58f4992c65aee35bc60281bf5d4b87dc0c33ba7.tar.gz
combo-e58f4992c65aee35bc60281bf5d4b87dc0c33ba7.tar.bz2
general: force URLs to reflect real page hierarchy (#8522)v0.9
Diffstat (limited to 'tests/test_pages.py')
-rw-r--r--tests/test_pages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pages.py b/tests/test_pages.py
index 074dd65..79aadcc 100644
--- a/tests/test_pages.py
+++ b/tests/test_pages.py
@@ -19,11 +19,11 @@ def test_page_url():
page = Page()
page.slug = 'foo'
page.save()
- assert page.get_online_url() == '/foo'
+ assert page.get_online_url() == '/foo/'
page2 = Page()
page2.slug = 'bar'
page2.parent = page
- assert page2.get_online_url() == '/foo/bar'
+ assert page2.get_online_url() == '/foo/bar/'
def test_page_of_level():
parent_page = None