Source

pyobjc-docs / pyobjc-framework-Social / PyObjCTest / test_slservicetypes.py

Full commit
from PyObjCTools.TestSupport import *
import sys

try:
    unicode
except NameError:
    unicode = str


if sys.maxsize >= 2**32:

    import Social

    class TestSLTypes (TestCase):
        @min_os_level("10.8")
        def testConstants(self):
            self.assertIsInstance(Social.SLServiceTypeTwitter, unicode)
            self.assertIsInstance(Social.SLServiceTypeSinaWeibo, unicode)

if __name__ == "__main__":
    main()