1from PyObjCTools.TestSupport import * 2 3from Foundation import * 4 5 6class TestNSNotificationQueue (TestCase): 7 def testConstants(self): 8 self.assertEqual(NSPostWhenIdle, 1) 9 self.assertEqual(NSPostASAP, 2) 10 self.assertEqual(NSPostNow, 3) 11 12 self.assertEqual(NSNotificationNoCoalescing, 0) 13 self.assertEqual(NSNotificationCoalescingOnName, 1) 14 self.assertEqual(NSNotificationCoalescingOnSender, 2) 15 16 17if __name__ == "__main__": 18 main() 19