#NEWLINE# def test12_parse_bad_capability( 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/"><rs:md capability="bad_capability" from="2013-01-01"/><url><loc>http://example.com/bad_res_1</loc><lastmod>2012-03-14T18:37:36Z</lastmod></url></urlset>' #NEWLINE# rd = ChangeDump ( ) #NEWLINE# self . assertRaises ( SitemapParseError , self . parse , fh = io . StringIO ( xml ) )