{"comment":{"url":"https://api.github.com/repos/greut/dojson/comments/14612533","html_url":"https://github.com/greut/dojson/commit/337946882cb129635409f1a7dbae032447ca0059#commitcomment-14612533","id":14612533,"user":{"login":"greut","id":1388,"avatar_url":"https://avatars.githubusercontent.com/u/1388?v=3","gravatar_id":"","url":"https://api.github.com/users/greut","html_url":"https://github.com/greut","followers_url":"https://api.github.com/users/greut/followers","following_url":"https://api.github.com/users/greut/following{/other_user}","gists_url":"https://api.github.com/users/greut/gists{/gist_id}","starred_url":"https://api.github.com/users/greut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greut/subscriptions","organizations_url":"https://api.github.com/users/greut/orgs","repos_url":"https://api.github.com/users/greut/repos","events_url":"https://api.github.com/users/greut/events{/privacy}","received_events_url":"https://api.github.com/users/greut/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"337946882cb129635409f1a7dbae032447ca0059","created_at":"2015-11-25T10:43:14Z","updated_at":"2015-11-25T10:43:14Z","body":"https://github.com/inveniosoftware/dojson/compare/master...greut:xml\r\n\r\n```\r\n_____________________________ test_toxml_from_xml ______________________________\r\n\r\n    def test_toxml_from_xml():\r\n        \"\"\"Test MARC21 loading from XML and recreating to XML.\"\"\"\r\n        from dojson.contrib.marc21.utils import create_record, split_stream\r\n        from dojson.contrib.to_marc21.utils import format_record\r\n        from lxml import etree, objectify\r\n    \r\n        for name, record in RECORDS.items():\r\n            blob = create_record(record)\r\n            xml = format_record(blob)\r\n    \r\n            kwargs = {'pretty_print': True}\r\n            recordxml = ('<collection xmlns=\"http://www.loc.gov/MARC21/slim\">' +\r\n                         record +\r\n                         '</collection>')\r\n    \r\n            expected = etree.tostring(objectify.fromstring(recordxml), **kwargs)\r\n            actual = etree.tostring(objectify.fromstring(xml), **kwargs)\r\n    \r\n>           assert expected == actual\r\nE           assert '<collection ...collection>\\n' == '<collection x...collection>\\n'\r\nE               <collection xmlns=\"http://www.loc.gov/MARC21/slim\">\r\nE                 <record>\r\nE                   <datafield tag=\"245\" ind1=\"0\" ind2=\"0\">\r\nE                     <subfield code=\"a\">Deutsche Bibliographie.</subfield>\r\nE                     <subfield code=\"p\">W&#246;chentliches Verzeichnis.</subfield>\r\nE             -       <subfield code=\"n\">Reihe B,</subfield>\r\nE                     <subfield code=\"p\">Beilage, Erscheinungen ausserhalb des Verlagsbuchhandels :</subfield>\r\nE                     <subfield code=\"b\">Amtsblatt der Deutschen Bibliothek.</subfield>\r\nE             +       <subfield code=\"n\">Reihe B,</subfield>\r\nE                   </datafield>\r\nE                 </record>\r\nE               </collection>\r\n\r\ntests/test_core.py:303: AssertionError\r\n=============== 2 failed, 72 passed, 42 skipped in 2.62 seconds ================\r\n```"}}