X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..8c1a28de26419e8e863f1c088917f19d63b2235e:/src/dictionary/tests.py

diff --git a/src/dictionary/tests.py b/src/dictionary/tests.py
old mode 100755
new mode 100644
index 0c83cf183..0b5924bb0
--- a/src/dictionary/tests.py
+++ b/src/dictionary/tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
@@ -16,11 +15,11 @@ class DictionaryTests(WLTestCase):
             kind="X-Kind",
             genre="X-Genre",
             epoch="X-Epoch",
-            **info_args(u"Default Book")
+            **info_args("Default Book")
         )
 
     def test_book_with_footnote(self):
-        BOOK_TEXT = """<utwor>
+        book_text = b"""<utwor>
         <opowiadanie>
             <akap><pe><slowo_obce>rose</slowo_obce> --- kind of a flower.</pe></akap>
             <akap><pe><slowo_obce>rose</slowo_obce> --- kind of a flower.</pe></akap>
@@ -28,7 +27,7 @@ class DictionaryTests(WLTestCase):
         </opowiadanie></utwor>
         """
 
-        book = Book.from_text_and_meta(ContentFile(BOOK_TEXT), self.book_info)
+        book = Book.from_text_and_meta(ContentFile(book_text), self.book_info)
 
         self.assertEqual(
             len(self.client.get('/przypisy/').context['object_list']),
@@ -49,4 +48,3 @@ class DictionaryTests(WLTestCase):
             len(self.client.get('/przypisy/?qual=techn.').context['object_list']),
             1,
             'There should be a note qualified with \'techn.\' qualifier.')
-