Merge pull request #248 from Gluejar/work_lang_fix

replace example book with one recognized now by Google Books
pull/1/head
Raymond Yee 2013-11-15 15:48:05 -08:00
commit 90a6cb33ca
1 changed files with 3 additions and 3 deletions

View File

@ -114,10 +114,10 @@ class BookLoaderTests(TestCase):
w.save()
e = models.Edition(title=w.title,work=w)
e.save()
models.Identifier(type='isbn', value='9780226032030', work=w, edition=e).save()
bookloader.update_edition(e)
models.Identifier(type='isbn', value='9780237540814', work=w, edition=e).save()
bookloader.update_edition(e)
self.assertEqual(e.work.language, 'en')
self.assertEqual(e.title, 'Forbidden Journeys')
self.assertEqual(e.title, 'Call of the Wild')
def test_double_add(self):
bookloader.add_by_isbn('0441007465')