コード例 #1
0
 def testUndefinedType(self):
     result = utils.getQEventName(70000)
     self.assertIn("Unknown", result)
     self.assertIn("70000", result)
コード例 #2
0
 def testNoneEvent(self):
     event = qt.QEvent(qt.QEvent.Type(0))
     result = utils.getQEventName(event)
     self.assertEqual(result, "None")
コード例 #3
0
 def testUserType(self):
     result = utils.getQEventName(1050)
     self.assertIn("User", result)
     self.assertIn("1050", result)
コード例 #4
0
 def testNoneType(self):
     result = utils.getQEventName(0)
     self.assertEqual(result, "None")