'Assert we can deal with starting blank lines before <xml> tag'

def test_sitemap_blanklines(self):

    s = Sitemap('\n<?xml    version="1.0"    encoding="UTF-8"?>\n<sitemapindex    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n\n<!--    cache:    cached    =    yes    name    =    sitemap_jspCache    key    =    sitemap    -->\n<sitemap>\n<loc>http://www.example.com/sitemap1.xml</loc>\n<lastmod>2013-07-15</lastmod>\n</sitemap>\n\n<sitemap>\n<loc>http://www.example.com/sitemap2.xml</loc>\n<lastmod>2013-07-15</lastmod>\n</sitemap>\n\n<sitemap>\n<loc>http://www.example.com/sitemap3.xml</loc>\n<lastmod>2013-07-15</lastmod>\n</sitemap>\n\n<!--    end    cache    -->\n</sitemapindex>\n')
    self.assertEqual(list(s), [{'lastmod': '2013-07-15', 'loc': 'http://www.example.com/sitemap1.xml'}, {'lastmod': '2013-07-15', 'loc': 'http://www.example.com/sitemap2.xml'}, {'lastmod': '2013-07-15', 'loc': 'http://www.example.com/sitemap3.xml'}])
