[PyObjC-svn] r2041 - in trunk/pyobjc/pyobjc-framework-SystemConfiguration: . Doc Exceptions Lib Lib/SystemConfiguration PyObjCTest

[email protected]
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Sun Jan 25 07:27:11 2009
New Revision: 2041

Log:
Full API test coverage on Leopard

Added:
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/Doc/
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/Doc/api-notes-SystemConfiguration.txt
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/SystemConfiguration/PyObjC.bridgesupport
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_DHCPClientPreferences.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_SCDynamicStore.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_SCDynamicStoreCopyDHCPInfo.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_SCDynamicStoreCopySpecific.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_SCDynamicStoreKey.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_scnetwork.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_scnetworkconfiguration.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_scnetworkconnection.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_scnetworkreachability.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_scpreferences.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_scpreferencespath.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_scpreferencessetspecific.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_scschemadefinitions.py   (contents, props changed)
Removed:
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/SystemConfiguration/PyObjCOverrides.bridgesupport
Modified:
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/Exceptions/SystemConfiguration.bridgesupport
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/   (props changed)
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/SystemConfiguration/__init__.py
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/SystemConfiguration/_manual.so
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_systemconfiguration.py
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/setup.py

Modified: trunk/pyobjc/pyobjc-framework-SystemConfiguration/Exceptions/SystemConfiguration.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SystemConfiguration/Exceptions/SystemConfiguration.bridgesupport	(original)
+++ trunk/pyobjc/pyobjc-framework-SystemConfiguration/Exceptions/SystemConfiguration.bridgesupport	Sun Jan 25 07:27:11 2009
@@ -14,12 +14,19 @@
   <constant magic_cookie='true' name='kSCNetworkInterfaceIPv4' />
   <constant magic_cookie='true' name='kSCNetworkInterfaceIPv4' />
   <constant magic_cookie='true' name='kSCNetworkInterfaceIPv4' />
+  <constant magic_cookie='true' name='kSCNetworkInterfaceIPv4' />
+  <constant magic_cookie='true' name='kSCNetworkInterfaceIPv4' />
   <function name='DHCPClientPreferencesCopyApplicationOptions'>
-    <retval c_array_length_in_arg='1' type='^C' type64='^C' />
+    <retval c_array_length_in_arg='1' type='^C' type64='^C' free_result='true' />
     <arg index='1' type_modifier='o' />
   </function>
   <function name='DHCPClientPreferencesSetApplicationOptions'>
+    <retval type='B' type64='B' />
     <arg c_array_length_in_arg='2' index='1' type='^C' type64='^C' type_modifier='n' />
+    <arg index='2' type='l' type64='q' />
+  </function>
+  <function name='DHCPInfoGetOptionData'>
+    <arg index='1' type='C' type64='C' />
   </function>
   <function name='SCBondInterfaceCopyAll'>
     <retval already_cfretained='true' already_retained='true' />
@@ -33,13 +40,30 @@
   <function name='SCBondInterfaceCreate'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
+  <function name='SCBondInterfaceRemove'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCBondInterfaceSetLocalizedDisplayName'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCBondInterfaceSetMemberInterfaces'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCBondInterfaceSetOptions'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCBondStatusGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
   <function name='SCCopyLastError'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
   <function name='SCDynamicStoreAddTemporaryValue'>
+    <retval type='B' type64='B' />
     <arg comment='CFTypeID' index='2' type='@' type64='@' />
   </function>
   <function name='SCDynamicStoreAddValue'>
+    <retval type='B' type64='B' />
     <arg comment='CFTypeID' index='2' type='@' type64='@' />
   </function>
   <function name='SCDynamicStoreCopyComputerName'>
@@ -82,12 +106,16 @@
   </function>
   <function name='SCDynamicStoreCreateRunLoopSource'>
     <retval already_cfretained='true' already_retained='true' />
+    <arg index='2' type='l' type64='q' />
   </function>
   <function comment='manual wrapper' name='SCDynamicStoreCreateWithOptions'>
     <retval already_cfretained='true' already_retained='true' />
     <arg index='3' type='^?' type64='^?' />
     <arg index='4' type='^{?=i^v^?^?^?}' type64='^{?=q^v^?^?^?}' />
   </function>
+  <function name='SCDynamicStoreGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
   <function name='SCDynamicStoreKeyCreate' variadic='true'>
     <retval already_cfretained='true' already_retained='true' />
     <arg index='1' printf_format='true' type='@' type64='@' />
@@ -119,18 +147,38 @@
   <function name='SCDynamicStoreKeyCreateProxies'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
+  <function name='SCDynamicStoreNotifyValue'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCDynamicStoreRemoveValue'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCDynamicStoreSetMultiple'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCDynamicStoreSetNotificationKeys'>
+    <retval type='B' type64='B' />
+  </function>
   <function name='SCDynamicStoreSetValue'>
-    <arg index='2' type='^v' type64='^v' />
+    <retval type='B' type64='B' />
+    <arg index='2' type='@' type64='@' />
+  </function>
+  <function name='SCError'>
+    <retval type='i' type64='i' />
   </function>
   <function name='SCErrorString'>
-    <retval comment='string' numeric='false' type='*' type64='*' />
+    <retval comment='string' type='*' type64='*' />
+    <arg index='0' type='i' type64='i' />
   </function>
   <function name='SCNetworkCheckReachabilityByAddress'>
+    <retval type='B' type64='B' />
     <arg index='0' type_modifier='n' />
+    <arg index='1' type='I' type64='I' />
     <arg index='2' type_modifier='o' />
   </function>
   <function name='SCNetworkCheckReachabilityByName'>
-    <arg comment='string' index='0' numeric='false' type='*' type64='*' />
+    <retval type='B' type64='B' />
+    <arg comment='string' index='0' type='*' type64='*' />
     <arg index='1' type_modifier='o' />
   </function>
   <function name='SCNetworkConnectionCopyExtendedStatus'>
@@ -146,6 +194,7 @@
     <retval already_cfretained='true' already_retained='true' />
   </function>
   <function name='SCNetworkConnectionCopyUserPreferences'>
+    <retval type='B' type64='B' />
     <arg already_retained='true' index='1' type_modifier='o' />
     <arg already_retained='true' index='2' type_modifier='o' />
   </function>
@@ -154,18 +203,41 @@
     <arg index='2' type='^?' type64='^?' />
     <arg index='3' type='^{?=i^v^?^?^?}' type64='^{?=q^v^?^?^?}' />
   </function>
+  <function name='SCNetworkConnectionGetStatus'>
+    <retval type='i' type64='i' />
+  </function>
+  <function name='SCNetworkConnectionGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
+  <function name='SCNetworkConnectionScheduleWithRunLoop'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkConnectionStart'>
+    <retval type='B' type64='B' />
+    <arg index='2' type='B' type64='B' />
+  </function>
+  <function name='SCNetworkConnectionStop'>
+    <retval type='B' type64='B' />
+    <arg index='1' type='B' type64='B' />
+  </function>
+  <function name='SCNetworkConnectionUnscheduleFromRunLoop'>
+    <retval type='B' type64='B' />
+  </function>
   <function name='SCNetworkInterfaceCopyAll'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
   <function name='SCNetworkInterfaceCopyMTU'>
+    <retval type='B' type64='B' />
     <arg index='1' type_modifier='o' />
     <arg index='2' type_modifier='o' />
     <arg index='3' type_modifier='o' />
   </function>
   <function name='SCNetworkInterfaceCopyMediaOptions'>
+    <retval type='B' type64='B' />
     <arg index='1' type_modifier='o' />
     <arg index='2' type_modifier='o' />
     <arg index='3' type_modifier='o' />
+    <arg index='4' type='B' type64='B' />
   </function>
   <function name='SCNetworkInterfaceCopyMediaSubTypeOptions'>
     <retval already_cfretained='true' already_retained='true' />
@@ -176,6 +248,41 @@
   <function name='SCNetworkInterfaceCreateWithInterface'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
+  <function name='SCNetworkInterfaceForceConfigurationRefresh'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkInterfaceGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
+  <function name='SCNetworkInterfaceRefreshConfiguration'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkInterfaceSetConfiguration'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkInterfaceSetExtendedConfiguration'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkInterfaceSetMTU'>
+    <retval type='B' type64='B' />
+    <arg index='1' type='i' type64='i' />
+  </function>
+  <function name='SCNetworkInterfaceSetMediaOptions'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkProtocolGetEnabled'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkProtocolGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
+  <function name='SCNetworkProtocolSetConfiguration'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkProtocolSetEnabled'>
+    <retval type='B' type64='B' />
+    <arg index='1' type='B' type64='B' />
+  </function>
   <function name='SCNetworkReachabilityCreateWithAddress'>
     <retval already_cfretained='true' already_retained='true' />
     <arg index='1' type_modifier='n' />
@@ -187,15 +294,29 @@
   </function>
   <function name='SCNetworkReachabilityCreateWithName'>
     <retval already_cfretained='true' already_retained='true' />
-    <arg comment='string' index='1' numeric='false' type='*' type64='*' />
+    <arg comment='string' index='1' type='*' type64='*' />
   </function>
   <function name='SCNetworkReachabilityGetFlags'>
+    <retval type='B' type64='B' />
     <arg index='1' type_modifier='o' />
   </function>
+  <function name='SCNetworkReachabilityGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
+  <function name='SCNetworkReachabilityScheduleWithRunLoop'>
+    <retval type='B' type64='B' />
+  </function>
   <function comment='manual wrapper' name='SCNetworkReachabilitySetCallback'>
+    <retval type='B' type64='B' />
     <arg index='1' type='^?' type64='^?' />
     <arg index='2' type='^{?=i^v^?^?^?}' type64='^{?=q^v^?^?^?}' />
   </function>
+  <function name='SCNetworkReachabilityUnscheduleFromRunLoop'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkServiceAddProtocolType'>
+    <retval type='B' type64='B' />
+  </function>
   <function name='SCNetworkServiceCopy'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
@@ -211,6 +332,34 @@
   <function name='SCNetworkServiceCreate'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
+  <function name='SCNetworkServiceEstablishDefaultConfiguration'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkServiceGetEnabled'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkServiceGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
+  <function name='SCNetworkServiceRemove'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkServiceRemoveProtocolType'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkServiceSetEnabled'>
+    <retval type='B' type64='B' />
+    <arg index='1' type='B' type64='B' />
+  </function>
+  <function name='SCNetworkServiceSetName'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkSetAddService'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkSetContainsInterface'>
+    <retval type='B' type64='B' />
+  </function>
   <function name='SCNetworkSetCopy'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
@@ -226,9 +375,34 @@
   <function name='SCNetworkSetCreate'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
+  <function name='SCNetworkSetGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
+  <function name='SCNetworkSetRemove'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkSetRemoveService'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkSetSetCurrent'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkSetSetName'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCNetworkSetSetServiceOrder'>
+    <retval type='B' type64='B' />
+  </function>
   <function name='SCPreferencesAddValue'>
+    <retval type='B' type64='B' />
     <arg comment='CFTypeRef' index='2' type='@' type64='@' />
   </function>
+  <function name='SCPreferencesApplyChanges'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCPreferencesCommitChanges'>
+    <retval type='B' type64='B' />
+  </function>
   <function name='SCPreferencesCopyKeyList'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
@@ -239,19 +413,59 @@
     <retval already_cfretained='true' already_retained='true' />
     <arg index='3' type='^{AuthorizationOpaqueRef=}' type64='^{AuthorizationOpaqueRef=}' />
   </function>
+  <function name='SCPreferencesGetTypeID'>
+    <retval type='L' type64='Q' />
+  </function>
   <function name='SCPreferencesGetValue'>
     <retval comment='CFTypeRef' type='@' type64='@' />
   </function>
+  <function name='SCPreferencesLock'>
+    <retval type='B' type64='B' />
+    <arg index='1' type='B' type64='B' />
+  </function>
   <function name='SCPreferencesPathCreateUniqueChild'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
+  <function name='SCPreferencesPathRemoveValue'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCPreferencesPathSetLink'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCPreferencesPathSetValue'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCPreferencesRemoveValue'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCPreferencesScheduleWithRunLoop'>
+    <retval type='B' type64='B' />
+  </function>
   <function comment='manual wrapper' name='SCPreferencesSetCallback'>
+    <retval type='B' type64='B' />
     <arg function_pointer='true' index='1' type='^?' type64='^?' />
     <arg index='2' type='^{?=i^v^?^?^?}' type64='^{?=q^v^?^?^?}' />
   </function>
+  <function name='SCPreferencesSetComputerName'>
+    <retval type='B' type64='B' />
+    <arg index='2' type='L' type64='I' />
+  </function>
+  <function name='SCPreferencesSetLocalHostName'>
+    <retval type='B' type64='B' />
+  </function>
   <function name='SCPreferencesSetValue'>
+    <retval type='B' type64='B' />
     <arg comment='CFTypeRef' index='2' type='@' type64='@' />
   </function>
+  <function name='SCPreferencesSynchronize'>
+    <retval type='v' type64='v' />
+  </function>
+  <function name='SCPreferencesUnlock'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCPreferencesUnscheduleFromRunLoop'>
+    <retval type='B' type64='B' />
+  </function>
   <function name='SCVLANInterfaceCopyAll'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
@@ -261,4 +475,16 @@
   <function name='SCVLANInterfaceCreate'>
     <retval already_cfretained='true' already_retained='true' />
   </function>
+  <function name='SCVLANInterfaceRemove'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCVLANInterfaceSetLocalizedDisplayName'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCVLANInterfaceSetOptions'>
+    <retval type='B' type64='B' />
+  </function>
+  <function name='SCVLANInterfaceSetPhysicalInterfaceAndTag'>
+    <retval type='B' type64='B' />
+  </function>
 </signatures>

Modified: trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/SystemConfiguration/__init__.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/SystemConfiguration/__init__.py	(original)
+++ trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/SystemConfiguration/__init__.py	Sun Jan 25 07:27:11 2009
@@ -15,3 +15,6 @@
     globals=globals())
 
 from SystemConfiguration._manual import *
+
+SCBondInterfaceRef = SCNetworkInterfaceRef
+SCVLANInterfaceRef = SCNetworkInterfaceRef

Modified: trunk/pyobjc/pyobjc-framework-SystemConfiguration/Lib/SystemConfiguration/_manual.so
==============================================================================
Binary files. No diff available.

Modified: trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_systemconfiguration.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_systemconfiguration.py	(original)
+++ trunk/pyobjc/pyobjc-framework-SystemConfiguration/PyObjCTest/test_systemconfiguration.py	Sun Jan 25 07:27:11 2009
@@ -2,43 +2,43 @@
 Some simple tests to check that the framework is properly wrapped.
 '''
 import objc
-import unittest
-import SystemConfiguration
+from PyObjCTools.TestSupport import *
+from SystemConfiguration import *
 
-class TestSystemConfiguration (unittest.TestCase):
-    def testClasses(self):
-        # Not-tollfree CF-type:
-        self.assert_( hasattr(SystemConfiguration, 'SCDynamicStoreRef') )
-        self.assert_( issubclass(SystemConfiguration.SCDynamicStoreRef, objc.lookUpClass('NSCFType')) )
-        self.assert_( SystemConfiguration.SCDynamicStoreRef is not objc.lookUpClass('NSCFType') )
-
-    def testValues(self):
-        self.assert_( hasattr(SystemConfiguration, 'kSCNetworkFlagsConnectionAutomatic') )
-        self.assert_( isinstance(SystemConfiguration.kSCNetworkFlagsConnectionAutomatic, (int, long)) )
-        self.assertEquals(SystemConfiguration.kSCNetworkFlagsConnectionAutomatic, 1 << 3)
-
-        self.assert_( hasattr(SystemConfiguration, 'kSCNetworkInterfaceIPv4') )
-        self.assert_( isinstance(SystemConfiguration.kSCNetworkInterfaceIPv4, SystemConfiguration.SCNetworkInterfaceRef) )
-
-        self.assert_( hasattr(SystemConfiguration, 'kSCNetworkConnectionBytesIn') )
-        self.assert_( isinstance(SystemConfiguration.kSCNetworkConnectionBytesIn, (str, unicode)) )
-        self.assert_( hasattr(SystemConfiguration, 'kSCPropUsersConsoleUserGID') )
-        self.assert_( isinstance(SystemConfiguration.kSCPropUsersConsoleUserGID, (str, unicode)) )
-
-    def testVariables(self):
-        self.assert_( hasattr(SystemConfiguration, 'kSCDynamicStoreUseSessionKeys') )
-        self.assert_( isinstance(SystemConfiguration.kSCDynamicStoreUseSessionKeys, unicode) )
-        self.assert_( hasattr(SystemConfiguration, 'kSCNetworkInterfaceType6to4') )
-        self.assert_( isinstance(SystemConfiguration.kSCNetworkInterfaceType6to4, unicode) )
-        self.assert_( hasattr(SystemConfiguration, 'kSCResvLink') )
-        self.assert_( isinstance(SystemConfiguration.kSCResvLink, unicode) )
+class TestSystemConfiguration (TestCase):
+    def testConstants(self):
+        self.failUnlessEqual(kSCStatusOK,  0)
+        self.failUnlessEqual(kSCStatusFailed,  1001)
+        self.failUnlessEqual(kSCStatusInvalidArgument,  1002)
+        self.failUnlessEqual(kSCStatusAccessError,  1003)
+        self.failUnlessEqual(kSCStatusNoKey,  1004)
+        self.failUnlessEqual(kSCStatusKeyExists,  1005)
+        self.failUnlessEqual(kSCStatusLocked,  1006)
+        self.failUnlessEqual(kSCStatusNeedLock,  1007)
+        self.failUnlessEqual(kSCStatusNoStoreSession,  2001)
+        self.failUnlessEqual(kSCStatusNoStoreServer,  2002)
+        self.failUnlessEqual(kSCStatusNotifierActive, 2003)
+        self.failUnlessEqual(kSCStatusNoPrefsSession, 3001)
+        self.failUnlessEqual(kSCStatusPrefsBusy, 3002)
+        self.failUnlessEqual(kSCStatusNoConfigFile, 3003)
+        self.failUnlessEqual(kSCStatusNoLink, 3004)
+        self.failUnlessEqual(kSCStatusStale, 3005)
+        self.failUnlessEqual(kSCStatusMaxLink, 3006)
+        self.failUnlessEqual(kSCStatusReachabilityUnknown, 4001)
+
+        self.failUnlessIsInstance(kCFErrorDomainSystemConfiguration, unicode)
 
     def testFunctions(self):
-        self.assert_( hasattr(SystemConfiguration, 'SCDynamicStoreCopyKeyList') )
-        self.assert_( hasattr(SystemConfiguration, 'SCDynamicStoreAddValue') )
+        err = SCCopyLastError()
+        self.failUnless(isinstance(err, CFErrorRef))
 
+        err = SCError()
+        self.failUnlessIsInstance(err, (int, long))
 
+        err = SCErrorString(kSCStatusNoLink);
+        self.failUnlessIsInstance(err, str)
 
-if __name__ == "__main__":
-    unittest.main()
 
+
+if __name__ == "__main__":
+    main()

Modified: trunk/pyobjc/pyobjc-framework-SystemConfiguration/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SystemConfiguration/setup.py	(original)
+++ trunk/pyobjc/pyobjc-framework-SystemConfiguration/setup.py	Sun Jan 25 07:27:11 2009
@@ -18,7 +18,7 @@
 
 setup(
     name='pyobjc-framework-SystemConfiguration',
-    version='2.0',
+    version='2.2b1',
     description = "Wrappers for the framework SystemConfiguration on Mac OS X",
     long_description = __doc__,
     author='Ronald Oussoren',

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.