X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/5fed78856949474a36bc5e268517775a9a802e27..28d85f12957a4b8609b4f419e70dd42a22b57765:/tests/test_picture.py diff --git a/tests/test_picture.py b/tests/test_picture.py index 71a77dc..1169f44 100644 --- a/tests/test_picture.py +++ b/tests/test_picture.py @@ -31,7 +31,7 @@ def test_wlpicture(): # from nose.tools import set_trace; set_trace() assert pi.type[0] == u"Image" - assert pi.mime_type == u'image/png' == wlp.mime_type + assert pi.mime_type == u'image/jpeg' == wlp.mime_type assert wlp.slug == 'angelus-novus' assert path.exists(wlp.image_path) @@ -42,7 +42,8 @@ def test_wlpicture(): def test_picture_parts(): wlp = picture.WLPicture.from_file(open(get_fixture('picture', 'angelus-novus.xml'))) parts = list(wlp.partiter()) - assert len(parts) == 5, "there should be %d parts of the picture" % 5 + expect_parts = 4 + assert len(parts) == expect_parts, "there should be %d parts of the picture" % expect_parts motifs = set() names = set()