From a8a24c12083d603623d15eff7ed3e8d2d7539431 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 10 Jun 2016 18:15:53 -0400 Subject: [PATCH] add to test --- core/tests.py | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/core/tests.py b/core/tests.py index f854d137..71e87c39 100755 --- a/core/tests.py +++ b/core/tests.py @@ -1133,7 +1133,64 @@ class OnixLoaderTests(TestCase): 'eISBN': u'N/A', 'eListPrice': u'N/A', 'ePublicationDate': u'', - 'eTerritoryRights': u''} + 'eTerritoryRights': u''}, + {'': u'', + 'CAD price eub': u'9.95', + 'Title': u'That Greece Might Still Be Free', + 'USD price epub': u'9.95', + 'ISBN 2 with dashes': u'978-1-906924-01-0', + 'Plain Text Blurb': u'When in 1821, the Greeks rose in violent revolution against the rule of the Ottoman Turks, waves of sympathy spread across Western Europe and the United States. More than a thousand volunteers set out to fight for the cause. The Philhellenes, whether they set out to recreate the Athens of Pericles, start a new crusade, or make money out of a war, all felt that Greece had unique claim on the sympathy of the world. As Lord Byron wrote, "I dreamed that Greece might still be Free"; and he died at Missolonghi trying to translate that dream into reality. William St Clair\'s meticulously researched and highly readable account of their aspirations and experiences was hailed as definitive when it was first published. Long out of print, it remains the standard account of the Philhellenic movement and essential reading for any students of the Greek War of Independence, Byron, and European Romanticism. Its relevance to more modern ethnic and religious conflicts is becoming increasingly appreciated by scholars worldwide. This revised edition includes a new introduction by Roderick Beaton, an updated bibliography and many new illustrations.', + 'Cover URL': u'http://www.openbookpublishers.com/shopimages/products/cover/3', + 'keywords': u'Greece; Greek History; Lord Byron; War of Independence; Philhellenes; war; history; Romanticism', + 'Publication type': u'Monograph', 'GBP price epub': u'5.95', 'publication month': u'11', 'no of tables': u'', + 'GBP price paperback': u'15.95', 'AUD price epub': u'9.95', 'ISBN 4 with dashes': u'978-1-906924-02-7-epub', + 'DOI prefix': u'10.11647', 'License URL (human-readable summary)': u'http://creativecommons.org/licenses/by-nc-nd/2.0/', + 'Contributor 5 surname': u'', 'Contributor 1 first name': u'William', 'Contributor 6 first name': u'', + 'ONIX Role Code (List 17)6': u'', 'ONIX Role Code (List 17)5': u'', 'ONIX Role Code (List 17)4': u'', + 'ONIX Role Code (List 17)3': u'', 'ONIX Role Code (List 17)2': u'A24', 'ONIX Role Code (List 17)1': u'A01', + 'GBP price hardback': u'29.95', 'Subtitle': u'The Philhellenes in the War of Independence', 'ONIX tag6': u'', + 'ISBN 3 with dashes': u'978-1-906924-02-7', 'Countries excluded': u'None', 'first edition publication date': u'39753', + 'Original Language': u'English', 'ISBN 1 with dashes': u'978-1-906924-00-3', 'Contributor 4 first name': u'', + 'ISBN 5 with dashes': u'978-1-906924-02-7-mobi', 'Contributor 2 surname': u'Beaton', + 'License URL (our copyright tab)': u'http://www.openbookpublishers.com/isbn/9781906924003#copyright', + 'BISAC subject code 1': u'HIS042000', 'BISAC subject code 3': u'HIS037060', + 'BISAC subject code 2': u'HIS054000', 'BISAC subject code 5': u'', + 'BISAC subject code 4': u'', 'Status': u'Active', 'Geographic rights': u'Worldwide', + 'Series Name': u'', 'Contributor 5 first name': u'', 'ISSN Print with dashes': u'', + 'ISBN 5': u'9781906924027mobi', 'Contributor 1 surname': u'St Clair', + 'Contributor 2 first name': u'Roderick', + 'Book-page permanent URL': u'http://www.openbookpublishers.com/isbn/9781906924003', + 'EUR price hardback': u'36.95', 'EUR price epub': u'7.95', 'Contributor 6 surname': u'', + 'current edition number (integers only)': u'1', + 'Table of Content': u"Introduction by Roderick Beaton\n1. The Outbreak\n2. The Return of the Ancient Hellenes\n3. The Regiment\n4. Two Kinds of War\n5. The Cause of Greece, the Cause of Europe\n6. The Road to Marseilles\n7. Chios\n8. The Battalion of Philhellenes\n9. The Battle of Peta\n10. The Triumph of the Captains\n11. The Return Home\n12. The German Legion\n13. Knights and Crusaders\n14. Secrets of State\n15. Enter the British\n16. Lord Byron joins the Cause\n17. 'To bring Freedom and Knowledge to Greece'\n18. Arrivals at Missolonghi\n19. The Byron Brigade\n20. Essays in Regeneration\n21. The New Apostles\n22. The English Gold\n23. The Coming of the Arabs\n24. The Shade of Napoleon\n25. 'No freedom to fight for at home'\n26. French Idealism and French Cynicism\n27. Regulars Again\n28. A New Fleet\n29. Athens and Navarino\n30. America to the Rescue\n31. Later\nAppendix I: Remarks on Numbers\nAppendix II: The Principal Philhellenic Expeditions\nNotes on the Select Bibliography\nSelect Bibliography\nBibliography of Primary and Secondary Material Since 1972\nNotes\nIndex", + 'no of illustrations': u'41', 'OBP Role Name6': u'', 'GBP price PDF': u'5.95', + 'OBP Role Name4': u'', 'OBP Role Name5': u'', 'OBP Role Name2': u'Introduction', + 'OBP Role Name3': u'', 'OBP Role Name1': u'Author', 'ONIX Status code': u'04', + 'LLC (Library of Congress Codes)': u'', 'publication day': u'1', + 'Copyright holder 2': u'', 'Language': u'English', 'Contributor 3 first name': u'', + 'CAD price hardback': u'54.95', 'USD price paperback': u'26.95', 'ONIX tag1': u'By (author)', + 'ONIX tag3': u'', 'ONIX tag2': u'Introduction by', 'ONIX tag5': u'', + 'ONIX tag4': u'', 'no of audio/video': u'0', 'EUR price mobi': u'7.95', + 'Version of the license': u'2.0', 'publication year': u'2008', + 'CAD price paperback': u'29.95', 'Full-text URL - PDF': u'http://www.openbookpublishers.com/reader/3', + 'Copyright holder 1': u'William St Clair', 'Copyright holder 3': u'', + 'Short Blurb (less than 100 words)': u'When in 1821, the Greeks rose in violent revolution against Ottoman rule, waves of sympathy spread across western Europe and the USA. Inspired by a belief that Greece had a unique claim on the sympathy of the world, more than a thousand Philhellenes set out to fight for the cause. This meticulously researched and highly readable account of their aspirations and experiences has long been the standard account of the Philhellenic movement and essential reading for students of the Greek War of Independence, Byron and European Romanticism. Its relevance to more modern conflicts is also becoming increasingly appreciated.', + 'BIC subject code 3': u'3JH', 'BIC subject code 2': u'1DVG', 'BIC subject code 1': u'HBJD', + 'ISSN Digital with dashes': u'', 'USD price mobi': u'9.95', 'BIC subject code 5': u'', + 'BIC subject code 4': u'', 'ONIX Language Code': u'eng', 'AUD price paperback': u'29.95', + 'AUD price mobi': u'9.95', 'No. in the Series': u'', 'CAD price PDF': u'9.95', + 'CAD price mobi': u'9.95', 'DOI suffix': u'OBP.0001', 'USD price PDF': u'9.95', + 'Book-page URL': u'http://www.openbookpublishers.com/product/3', + 'Academic discipline (OBP)': u'History and Biography', 'EUR price paperback': u'19.95', + 'License': u'CC BY-NC-ND', 'AUD price PDF': u'9.95', 'Contributor 3 surname': u'', + 'AUD price hardback': u'54.95', 'ISBN 4': u'9781906924027epub', 'no of pages': u'440', + 'ISBN 2': u'9781906924010', 'ISBN 3': u'9781906924027', 'ISBN 1': u'9781906924003', + 'pages': u'xxi + 419', 'Contributor 4 surname': u'', 'USD price hardback': u'48.95', + 'Full-text URL - HTML': u'http://www.openbookpublishers.com/htmlreader/978-1-906924-00-3/main.html', + 'GBP price mobi': u'5.95', 'Format 1': u'Paperback ', 'EUR price PDF': u'7.95', 'Format 3': u'pdf', + 'Format 2': u'Hardback', 'Format 5': u'mobi', 'Format 4': u'epub', 'MARC Code1': u'aut', + 'MARC Code2': u'aui', 'MARC Code3': u'', 'MARC Code4': u'', 'MARC Code5': u'', + 'MARC Code6': u'', 'ISO Language Code': u'en'} ] results = load_from_books(TEST_BOOKS)