diff --git a/core/tests.py b/core/tests.py index 3fc482c0..9983ca48 100755 --- a/core/tests.py +++ b/core/tests.py @@ -64,8 +64,8 @@ class BookLoaderTests(TestCase): # edition edition = bookloader.add_by_isbn('0441007465') self.assertEqual(edition.title, 'Neuromancer') - self.assertEqual(edition.publication_date, u'2000-07-01') - self.assertEqual(edition.publisher, u'Ace Trade') + self.assertEqual(edition.publication_date, u'2000') + self.assertEqual(edition.publisher, u'Penguin') self.assertEqual(edition.isbn_10, '0441007465') self.assertEqual(edition.isbn_13, '9780441007462') self.assertEqual(edition.googlebooks_id, 'IDFfMPW32hQC') @@ -88,8 +88,8 @@ class BookLoaderTests(TestCase): self.assertEqual(edition.work.publishers().count(), 1) old_pub_name.publisher = pub old_pub_name.save() - edition.set_publisher(u'Ace Trade') - self.assertEqual(edition.publisher, u'test publisher name') # Ace Trade has been aliased + edition.set_publisher(u'Penguin') + self.assertEqual(edition.publisher, u'test publisher name') # Penguin has been aliased # locale in language edition = bookloader.add_by_isbn('9787500676911') self.assertEqual(edition.work.language, 'zh') @@ -715,8 +715,8 @@ class DownloadPageTest(TestCase): anon_client = Client() response = anon_client.get("/work/%s/download/" % w.id, follow=True) - self.assertContains(response, "/download_ebook/%s/"% eb1.id, count=4) #the extra is readmill - self.assertContains(response, "/download_ebook/%s/"% eb2.id, count=3) + self.assertContains(response, "/download_ebook/%s/"% eb1.id, count=9) + self.assertContains(response, "/download_ebook/%s/"% eb2.id, count=4) class LocaldatetimeTest(TestCase): diff --git a/frontend/templates/campaign_list.html b/frontend/templates/campaign_list.html index 64be1792..78ec4cf7 100644 --- a/frontend/templates/campaign_list.html +++ b/frontend/templates/campaign_list.html @@ -76,7 +76,7 @@ location.hash = "#2";
{% ifequal campaign_list.count 0 %} - There aren't any {{ pub_lang|ez_lang_name }} ungluing campaigns active yet. If you're an author, publisher, or other rights holder, you can start one. + There aren't any {{ pub_lang|ez_lang_name }} ungluing campaigns active right now. If you're an author, publisher, or other rights holder, you can start one. {% else %} {% lazy_paginate 20 campaign_list using "campaign_list" %} diff --git a/frontend/templates/download.html b/frontend/templates/download.html index ce98a9ee..5c4316b7 100644 --- a/frontend/templates/download.html +++ b/frontend/templates/download.html @@ -23,7 +23,7 @@ $j(document).ready(function() {