Module Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad
N/A N/A unittest N/A N/A N/A StringIO io N/A N/A N/A ImportError N/A N/A io N/A re resync.resource Resource resync.resource_dump ResourceDump resync.sitemap SitemapParseError TestResourceDump N/A N/A unittest TestCase N/A test01_as_xml N/A N/A self N/A N/A N/A rd N/A ResourceDump N/A N/A N/A rd add N/A Resource a.zip timestamp 1 N/A N/A N/A rd add N/A Resource b.zip timestamp 2 N/A xml N/A N/A rd as_xml N/A N/A N/A self assertTrue N/A N/A re search <rs:md .*capability="resourcedump" xml XML has capability N/A N/A N/A self assertTrue N/A N/A re search <url><loc>a.zip</loc><lastmod>1970-01-01T00:00:01Z</lastmod></url> xml XML has resource a N/A test10_parse N/A N/A self N/A N/A N/A xml <?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:rs="http://www.openarchives.org/rs/terms/"><rs:md at="2013-01-01" capability="resourcedump"/><url><loc>http://example.com/a.zip</loc><lastmod>2012-03-14T18:37:36Z</lastmod><rs:md length="12345" /></url><url><loc>http://example.com/b.zip</loc><lastmod>2012-03-14T18:37:36Z</lastmod><rs:md length="56789" /></url></urlset> N/A rd N/A ResourceDump N/A N/A N/A rd parse fh N/A N/A io StringIO xml N/A N/A N/A self assertEqual N/A len N/A rd resources 2 got 2 resource dumps N/A N/A N/A self assertEqual N/A rd capability resourcedump capability set N/A N/A N/A self assertEqual N/A rd md_at 2013-01-01 N/A N/A N/A self assertTrue N/A http://example.com/a.zip N/A rd resources N/A N/A N/A self assertTrue N/A N/A N/A rd resources N/A http://example.com/a.zip length 12345 N/A N/A N/A self assertTrue N/A http://example.com/b.zip N/A rd resources N/A N/A N/A self assertTrue N/A N/A N/A rd resources N/A http://example.com/b.zip length 56789 N/A test11_parse_no_capability N/A N/A self N/A N/A N/A xml <?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:rs="http://www.openarchives.org/rs/terms/"><rs:md from="2013-01-01"/><url><loc>http://example.com/a.zip</loc><lastmod>2012-03-14T18:37:36Z</lastmod><rs:md length="12" /></url></urlset> N/A rd N/A ResourceDump N/A N/A N/A self assertRaises SitemapParseError N/A rd parse fh N/A N/A io StringIO xml N/A test12_parse_bad_capability N/A N/A self N/A N/A N/A xml <?xml version='1.0' encoding='UTF-8'?>
<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> N/A rd N/A ResourceDump N/A N/A N/A self assertRaises SitemapParseError N/A rd parse fh N/A N/A io StringIO xml N/A N/A N/A N/A __name__ __main__ N/A N/A suite N/A N/A N/A unittest defaultTestLoader loadTestsFromTestCase TestResourceDump N/A N/A N/A N/A N/A unittest TextTestRunner run suite