1from PyObjCTools.TestSupport import * 2 3from SystemConfiguration import * 4 5 6class TestDHCPClientPreferences (TestCase): 7 def testFunctions(self): 8 self.assertRaises(ValueError, DHCPClientPreferencesSetApplicationOptions, 9 b"org.pyobjc.TestSuite".decode('latin1'), [9, 10, 0], 4) 10 11 r = DHCPClientPreferencesSetApplicationOptions( 12 b"org.pyobjc.TestSuite".decode('latin1'), [9, 10, 0, 9], 4) 13 self.assertTrue(r is True or r is False) 14 15 r, count = DHCPClientPreferencesCopyApplicationOptions(b"com.apple.SystemPreferences".decode('latin1'), None) 16 self.assertTrue(r is objc.NULL) 17 self.assertTrue(count == 0) 18 19if __name__ == "__main__": 20 main() 21