From: Jan Szejko Date: Thu, 29 Jun 2017 09:47:37 +0000 (+0200) Subject: one more fix to bookmedia tests X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/bdd94f003c8dd3164950b445971a2963deef63cd?hp=e87e359924b9760e30c18eac443da10d76d81be4 one more fix to bookmedia tests --- diff --git a/src/catalogue/tests/bookmedia.py b/src/catalogue/tests/bookmedia.py index b3c195861..263e48d9a 100644 --- a/src/catalogue/tests/bookmedia.py +++ b/src/catalogue/tests/bookmedia.py @@ -51,7 +51,7 @@ class BookMediaTests(WLTestCase): bm.file.save(None, self.file2) self.assertEqual(bm.file.read(), 'Y') - self.assertEqual(basename(bm.file.name), '%s-some-media.ogg' % bm.id) + self.assertEqual(basename(bm.file.name), 'some-media.ogg') @skip('broken, but is it needed?') def test_no_clobber(self):