Source

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

Diff from to

File pyobjc-framework-Cocoa/PyObjCTest/test_cfpropertylist.py

         v, err = CFPropertyListCreateFromXMLData(None, dta, 0, None)
         self.assertIs(err, None)
         self.assertIsInstance(v, CFDictionaryRef)
-        self.assertIsIn('key', v)
-        self.assertIsIn('key2', v)
+        self.assertIn('key', v)
+        self.assertIn('key2', v)
         self.assertEqual(v['key'] , 42)
         self.assertEqual(v['key2'] , True)
         v = CFPropertyListCreateDeepCopy(None, {b"key".decode('ascii'): 42, b"key2".decode('ascii'): True}, 0)
         self.assertIsInstance(v, CFDictionaryRef)
-        self.assertIsIn('key', v)
-        self.assertIsIn('key2', v)
+        self.assertIn('key', v)
+        self.assertIn('key2', v)
         self.assertEqual(v['key'] , 42)
         self.assertEqual(v['key2'] , True)
         valid = CFPropertyListIsValid({b"key".decode('ascii'): 42, b"key2".decode('ascii'): True}, kCFPropertyListBinaryFormat_v1_0)
         self.assertIsInstance(buf, CFDataRef)
         buf = CFDataGetBytes(buf, (0, CFDataGetLength(buf)), None)
         self.assertIsInstance(buf, bytes)
-        self.assertIsIn(b'<key>key1</key>', buf)
-        self.assertIsIn(b'<integer>42</integer>', buf)
-        self.assertIsIn(b'<key>key2</key>', buf)
-        self.assertIsIn(b'<integer>1</integer>', buf)
+        self.assertIn(b'<key>key1</key>', buf)
+        self.assertIn(b'<integer>42</integer>', buf)
+        self.assertIn(b'<key>key2</key>', buf)
+        self.assertIn(b'<integer>1</integer>', buf)
         stream = CFReadStreamCreateWithBytesNoCopy(None, buf, len(buf), kCFAllocatorNull)
         r = CFReadStreamOpen(stream)
         self.assertTrue(r)