Merge pull request #297 from Gluejar/fix_ebook_test

A pragmatic fix -- given we're essentially not running this test anyhow.
pull/1/head
eshellman 2014-02-14 15:29:55 -05:00
commit cc0622bd2d
1 changed files with 2 additions and 2 deletions

View File

@ -318,8 +318,8 @@ class BookLoaderTests(TestCase):
def test_ebook(self):
edition = bookloader.add_by_oclc('1246014')
# we've seen the public domain status of this book fluctuate. So if the ebook count is 2 then test
if edition.ebooks.count() == 2:
# we've seen the public domain status of this book fluctuate -- and the OCLC number can disappear. So if the ebook count is 2 then test
if edition is not None and edition.ebooks.count() == 2:
#self.assertEqual(edition.ebooks.count(), 2)
#ebook_epub = edition.ebooks.all()[0]
ebook_epub = edition.ebooks.filter(format='epub')[0]