Source

pyobjc / pyobjc-framework-Cocoa / PyObjCTest / test_nsnotification.py

Full commit
from Foundation import *
from PyObjCTools.TestSupport import *

class TestNSNotification (TestCase):
    def testMethods(self):
        self.assertArgIsSEL(NSNotificationCenter.addObserver_selector_name_object_, 1, b'v@:@')

    @min_os_level('10.6')
    def testMethods10_6(self):
        self.assertArgIsBlock(NSNotificationCenter.addObserverForName_object_queue_usingBlock_, 3, b'v@')

if __name__ == "__main__":
    main()