#NEWLINE# def test_11_parse_2( self ) : #NEWLINE# #INDENT# xml = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:rs="http://www.openarchives.org/rs/terms/"><url><loc>/tmp/rs_test/src/file_a</loc><lastmod>2012-03-14T18:37:36Z</lastmod><rs:md length="12" /></url><url><loc>/tmp/rs_test/src/file_b</loc><lastmod>2012-03-14T18:37:36Z</lastmod><rs:md length="32" /></url></urlset>' #NEWLINE# s = Sitemap ( ) #NEWLINE# i = s . parse_xml ( fh = io . StringIO ( xml ) ) #NEWLINE# self . assertFalse ( s . parsed_index , 'was a sitemap' ) #NEWLINE# self . assertEqual ( s . resources_created , 2 , 'got 2 resources' )