def test_invalid(self):
        if 7 >= sys.version_info[1]:
            self.assertRaises(et.ParseError, data.load, "<dict</dict>")
        else:
            from xml.parsers.expat import ExpatError
            self.assertRaises(ExpatError, data.load, "<dict</dict>")
            
        self.assertRaises(KeyError, data.load, "<dict><key>a</key></dict>")
dataset/ETHPy150Open splunk/splunk-sdk-python/tests/test_data.py/DataTestCase.test_invalid/swapped operands of `>=`