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')