def test_selectDoesNotChangeTheParserFormat(self): """ Test that using the _select() method of the Parser object does not change the _format attribute. """ p = Parser(os.path.join(self.path, "dataless.seed.BW_FURT.xml")) self.assertEqual(p._format, "XSEED") p._select(p.get_inventory()["channels"][0]["channel_id"]) self.assertEqual(p._format, "XSEED")
def test_select_does_not_change_the_parser_format(self): """ Test that using the _select() method of the Parser object does not change the _format attribute. """ p = Parser(os.path.join(self.path, "dataless.seed.BW_FURT.xml")) self.assertEqual(p._format, "XSEED") p._select(p.get_inventory()["channels"][0]["channel_id"]) self.assertEqual(p._format, "XSEED")