+
+ def test_zip_audiobooks(self):
+ paths = [
+ join(dirname(__file__), "files/fraszka-do-anusie.xml"),
+ join(dirname(__file__), "files/fraszki.xml")
+ ]
+
+ url = utils.create_zip(paths, 'test-zip-slug')
+ self.assertEqual("zip/test-zip-slug.zip", url)
+ self.assertTrue(exists(join(settings.MEDIA_ROOT, url)))
+
+ utils.remove_zip('test-zip-slug')
+ self.assertFalse(exists(join(settings.MEDIA_ROOT, url)))