X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/655700e4cde69f00f698a06ca18991eef784ccda..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/apps/picture/tests/picture_import.py?ds=inline diff --git a/apps/picture/tests/picture_import.py b/apps/picture/tests/picture_import.py deleted file mode 100644 index 202acdd65..000000000 --- a/apps/picture/tests/picture_import.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import with_statement - -from os import path -from django.test import TestCase -from picture.models import Picture - - -class PictureTest(TestCase): - - def test_import(self): - picture = Picture.from_xml_file(path.join(path.dirname(__file__), "files/kandinsky-composition-viii.xml")) - - motifs = set([tag.name for tag in picture.tags if tag.category == 'theme']) - assert motifs == set([u'nieporządek']), 'theme tags are wrong. %s' % motifs - - picture.delete() - - def test_import_with_explicit_image(self): - picture = Picture.from_xml_file(path.join(path.dirname(__file__), "files/kandinsky-composition-viii.xml"), - path.join(path.dirname(__file__), "files/kandinsky-composition-viii.png")) - - picture.delete() -