-def check_load(xml_file):
- pi = dcparser.parse(xml_file, picture.PictureInfo)
- assert pi is not None
- assert isinstance(pi, picture.PictureInfo)
+class PictureTests(unittest.TestCase):
+ def test_wlpictureuri(self):
+ uri = picture.WLPictureURI('http://wolnelektury.pl/katalog/obraz/angelus-novus')
+
+ def check_load(self, xml_file):
+ pi = dcparser.parse(xml_file, picture.PictureInfo)
+ self.assertIsNotNone(pi)
+ self.assertIsInstance(pi, picture.PictureInfo)