X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..ff21f9bc563f16fcde81eafccd38f212f22ba582:/src/catalogue/tests/test_bookmedia.py diff --git a/src/catalogue/tests/test_bookmedia.py b/src/catalogue/tests/test_bookmedia.py index b744f963f..6bc6aa32c 100644 --- a/src/catalogue/tests/test_bookmedia.py +++ b/src/catalogue/tests/test_bookmedia.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. # @@ -24,7 +23,7 @@ class BookMediaTests(WLTestCase): self.book.save() def test_diacritics(self): - bm = models.BookMedia(book=self.book, type="ogg", name=u"Zażółć gęślą jaźń") + bm = models.BookMedia(book=self.book, type="ogg", name="Zażółć gęślą jaźń") self.set_title(bm.name) bm.file.save(None, self.file) self.assertEqual(basename(bm.file.name), 'zazolc-gesla-jazn.ogg') @@ -59,10 +58,10 @@ class BookMediaTests(WLTestCase): File save doesn't clobber some other media with similar name. """ - bm = models.BookMedia(book=self.book, type='ogg', name=u"Tytul") + bm = models.BookMedia(book=self.book, type='ogg', name="Tytul") self.set_title(bm.name) bm.file.save(None, self.file) - bm2 = models.BookMedia(book=self.book, type='ogg', name=u"Tytuł") + bm2 = models.BookMedia(book=self.book, type='ogg', name="Tytuł") self.set_title(bm2.name) bm2.file.save(None, self.file2) self.assertEqual(basename(bm.file.name), 'tytul.ogg')