1from PyObjCTools.TestSupport import *
2
3from objc import *
4from Foundation import *
5
6class TestTollFreeBridging( TestCase ):
7    def testImplicitFromCF(self):
8
9        c = CFArrayCreateMutable(None, 0, None)
10        self.assert_(isinstance(c, CFMutableArrayRef))
11
12        nsa = NSMutableArray.array()
13        nsa.addObject_(c)
14
15        o = nsa[0]
16        self.assert_(isinstance(o, NSMutableArray))
17
18if __name__ == '__main__':
19    main( )
20