X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1405761d13e0ba62db4b1f9a9d5fa1472142b6d0..1f9103b1e752a6c41d2304bf5e41a7d6ae0c45c8:/apps/picture/tests/picture_import.py diff --git a/apps/picture/tests/picture_import.py b/apps/picture/tests/picture_import.py index 785aa6d28..68c875391 100644 --- a/apps/picture/tests/picture_import.py +++ b/apps/picture/tests/picture_import.py @@ -22,3 +22,12 @@ class PictureTest(WLTestCase): picture.delete() + + def test_import_2(self): + picture = Picture.from_xml_file(path.join(path.dirname(__file__), "files/pejzaz-i-miasto-krzyzanowski-chmury.xml"), + path.join(path.dirname(__file__), "files/pejzaz-i-miasto-krzyzanowski-chmury.jpg"), + overwrite=True) + cats = set([t.category for t in picture.tags]) + assert 'genre' in cats + assert 'kind' in cats +