class TestOwsCswPreprocessor(unittest.TestCase): # this can only fail - the csw init only supports url access def setUp(self): with open('tests/test_data/cwic_csw_v2_0_2.xml', 'r') as f: text = f.read() self.reader = OwsCswPreprocessor(text, '2.0.2') def test_return_descriptors(self): # self.assertTrue(self.reader.reader) descriptors = self.reader.return_service_descriptors() self.assertTrue('CEOS WGISS Integrated Catalog (CWIC)' in descriptors['title']) self.assertFalse(descriptors['version'] == "2.0.2")
def setUp(self): with open('tests/test_data/cwic_csw_v2_0_2.xml', 'r') as f: text = f.read() self.reader = OwsCswPreprocessor(text, '2.0.2')