1# Place holder for real tests.
2from PyObjCTools.TestSupport import *
3import objc
4
5from Foundation import NSLocalizedString
6
7class TestNSLocalizedString(TestCase):
8    def testBasic(self):
9        # This is mostly a regression tests, the function used to crash on
10        # this...
11        if objc.platform != 'MACOSX':
12            return
13
14        s = NSLocalizedString(u"hello world", u"")
15        objc.recycleAutoreleasePool()
16        self.assertEquals (s, u"hello world")
17        # XXX : Since we get the same object back, it's still unicode
18        #self.assertEquals (s.nsstring().description(), u"hello world")
19
20if __name__ == '__main__':
21    main( )
22