X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4298f7948e8963176debf5877fce30c49ae4e3ad..f39c00ef647a7f625d9bd61c570b89d7b9762c61:/src/picture/tests/test_picture_import.py?ds=inline diff --git a/src/picture/tests/test_picture_import.py b/src/picture/tests/test_picture_import.py index 022b33c62..8ff125172 100644 --- a/src/picture/tests/test_picture_import.py +++ b/src/picture/tests/test_picture_import.py @@ -1,9 +1,6 @@ -# -*- 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. # -from __future__ import with_statement - from os import path from picture.models import Picture from catalogue.test_utils import WLTestCase @@ -18,8 +15,8 @@ class PictureTest(WLTestCase): for area in picture.areas.all(): themes.update([ (tag.category, tag.name) - for tag in area.tags if tag.category in (u'theme', u'thing')]) - assert themes == {(u'theme', u'nieporządek'), (u'thing', u'Kosmos')}, \ + for tag in area.tags if tag.category in ('theme', 'thing')]) + assert themes == {('theme', 'nieporządek'), ('thing', 'Kosmos')}, \ 'Bad themes on Picture areas: %s' % themes pic_themes = set([tag.name for tag in picture.tags if tag.category in ('theme', 'thing')])