summaryrefslogtreecommitdiffstats
path: root/tests/test_pages.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-05-17 09:35:09 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2016-05-17 09:35:43 (GMT)
commitad995eaf4ca05595e46a1fe6902fef1d60e8e678 (patch)
treeff8aca924d3ad42a8f5084ec491c7e8fc5f05fd6 /tests/test_pages.py
parent541343d2edd5255705a5d32941aee0985d3333fb (diff)
downloadcombo-ad995eaf4ca05595e46a1fe6902fef1d60e8e678.zip
combo-ad995eaf4ca05595e46a1fe6902fef1d60e8e678.tar.gz
combo-ad995eaf4ca05595e46a1fe6902fef1d60e8e678.tar.bz2
tests: pass unicode as titles
Diffstat (limited to 'tests/test_pages.py')
-rw-r--r--tests/test_pages.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_pages.py b/tests/test_pages.py
index 1e55973..62c3658 100644
--- a/tests/test_pages.py
+++ b/tests/test_pages.py
@@ -7,17 +7,17 @@ pytestmark = pytest.mark.django_db
def test_page_order():
page = Page()
- page.title = 'foo'
+ page.title = u'foo'
page.save()
page2 = Page()
- page2.title = 'bar'
+ page2.title = u'bar'
page2.save()
assert Page.objects.get(id=page.id).order < Page.objects.get(id=page2.id)
def test_page_url():
page = Page()
- page.slug = 'foo'
+ page.slug = u'foo'
page.save()
assert page.get_online_url() == '/foo/'
page2 = Page()
@@ -114,13 +114,13 @@ def test_page_visibility():
assert not page.is_visible(user2)
def test_import_export_pages():
- page = Page(title='foo', slug='foo', order=0)
+ page = Page(title=u'foo', slug='foo', order=0)
page.save()
cell = TextCell(page=page, text='foo', order=0)
cell.save()
- page2 = Page(title='bar', slug='bar', order=1, parent=page)
+ page2 = Page(title=u'bar', slug='bar', order=1, parent=page)
page2.save()
cell = TextCell(page=page2, text='bar', order=0)
@@ -140,10 +140,10 @@ def test_import_export_pages():
assert CellBase.get_cells(page_id=new_page_1.id)[0].text == 'foo'
def test_import_export_pages_with_links():
- page = Page(title='foo', slug='foo', order=0)
+ page = Page(title=u'foo', slug='foo', order=0)
page.save()
- page2 = Page(title='bar', slug='bar', order=1)
+ page2 = Page(title=u'bar', slug='bar', order=1)
page2.save()
cell = LinkCell(page=page, title='bar', link_page=page2, order=1)