def testUndefinedType(self): result = utils.getQEventName(70000) self.assertIn("Unknown", result) self.assertIn("70000", result)
def testNoneEvent(self): event = qt.QEvent(qt.QEvent.Type(0)) result = utils.getQEventName(event) self.assertEqual(result, "None")
def testUserType(self): result = utils.getQEventName(1050) self.assertIn("User", result) self.assertIn("1050", result)
def testNoneType(self): result = utils.getQEventName(0) self.assertEqual(result, "None")