Beispiel #1
0
 def test_simple_XML_parser(self):
     """
     Tests the simple XML parsing helper function.
     """
     catalogs = parse_simple_xml("""
         <?xml version="1.0"?>
         <Catalogs>
           <total>6</total>
           <Catalog>ANF</Catalog>
           <Catalog>GCMT</Catalog>
           <Catalog>TEST</Catalog>
           <Catalog>ISC</Catalog>
           <Catalog>UofW</Catalog>
           <Catalog>NEIC PDE</Catalog>
         </Catalogs>""")
     self.assertEqual(catalogs, {"catalogs": set(("ANF", "GCMT", "TEST",
                                                  "ISC", "UofW",
                                                  "NEIC PDE"))})
Beispiel #2
0
 def test_simple_XML_parser(self):
     """
     Tests the simple XML parsing helper function.
     """
     catalogs = parse_simple_xml("""
         <?xml version="1.0"?>
         <Catalogs>
           <total>6</total>
           <Catalog>ANF</Catalog>
           <Catalog>GCMT</Catalog>
           <Catalog>TEST</Catalog>
           <Catalog>ISC</Catalog>
           <Catalog>UofW</Catalog>
           <Catalog>NEIC PDE</Catalog>
         </Catalogs>""")
     self.assertEqual(catalogs, {"catalogs": set(("ANF", "GCMT", "TEST",
                                                  "ISC", "UofW",
                                                  "NEIC PDE"))})