Index: spongenet/trunk/spongenet/parse.py =================================================================== --- spongenet/trunk/spongenet/parse.py (revision 351) +++ spongenet/trunk/spongenet/parse.py (revision 366) @@ -140,5 +140,5 @@ def xmldoc(path): """ - Return the XML document as a list of strings from a file at path. + Return the XML document as a string from a file at path. Get the test reference data. @@ -164,12 +164,12 @@ Verify the test document matches the reference data. - >>> _xmldoc[0] == '\\n' - True - >>> _xmldoc[-1] == '\\n' - True - >>> len(_xmldoc) == xml_doc_lens[os.path.basename(_xmldoc_path)] + >>> _xmldoc.splitlines()[0] == '' + True + >>> _xmldoc.splitlines()[-1] == '' + True + >>> len(_xmldoc.splitlines()) == xml_doc_lens[os.path.basename(_xmldoc_path)] True >>> doc_hash = hashlib.md5() - >>> doc_hash.update("".join(_xmldoc)) + >>> doc_hash.update(_xmldoc) >>> doc_hash.hexdigest() == xml_doc_md5s[os.path.basename(_xmldoc_path)] True @@ -180,5 +180,5 @@ _xmldoc = handle.readlines() - return _xmldoc + return "".join(_xmldoc)