Commits

Ronald Oussoren committed e223567

CoreWLAN tests now actually pass (on OSX, 64-bit)

Comments (0)

Files changed (4)

pyobjc-framework-CoreWLAN/Lib/CoreWLAN/__init__.py

 
 from CoreWLAN import _metadata
 
-def CW8021XProfile__eq__(self, other):
+def _CW8021XProfile__eq__(self, other):
     if not isinstance(other, type(self)):
         return False
 
     return self.isEqualToProfile_(other)
 
-def CW8021XProfile__ne__(self, other):
+def _CW8021XProfile__ne__(self, other):
     if not isinstance(other, type(self)):
         return True
 

pyobjc-framework-CoreWLAN/PyObjCTest/test_corewlantypes.py

 import Foundation
 
 class TestCoreWLANTypes (TestCase):
-    def testConstants(Self):
+    def testConstants(self):
         self.assertEqual(CoreWLAN.kCWNoErr, 0)
         self.assertEqual(CoreWLAN.kCWEAPOLErr, 1)
         self.assertEqual(CoreWLAN.kCWInvalidParameterErr, -3900)
         self.assertEqual(CoreWLAN.kCWInterfaceStateScanning, 1)
         self.assertEqual(CoreWLAN.kCWInterfaceStateAuthenticating, 2)
         self.assertEqual(CoreWLAN.kCWInterfaceStateAssociating, 3)
-        self.assertEqual(CoreWLAN.kCWInterfaceStateRunning 4)
+        self.assertEqual(CoreWLAN.kCWInterfaceStateRunning, 4)
         self.assertEqual(CoreWLAN.kCWScanTypeActive, 0)
         self.assertEqual(CoreWLAN.kCWScanTypePassive, 1)
         self.assertEqual(CoreWLAN.kCWScanTypeFast, 2)

pyobjc-framework-CoreWLAN/PyObjCTest/test_cwinterface.py

         self.assertResultIsBOOL(CoreWLAN.CWInterface.associateToNetwork_parameters_error_);
         self.assertArgIsOut(CoreWLAN.CWInterface.associateToNetwork_parameters_error_, 2);
 
-        self.assertResultIsBOOL(CoreWLAN.CWInterface.enableIBSSWithParameters_parameters_error_);
-        self.assertArgIsOut(CoreWLAN.CWInterface.enableIBSSWithParameters_parameters_error_, 2);
+        self.assertResultIsBOOL(CoreWLAN.CWInterface.enableIBSSWithParameters_error_);
+        self.assertArgIsOut(CoreWLAN.CWInterface.enableIBSSWithParameters_error_, 1);
 
         self.assertResultIsBOOL(CoreWLAN.CWInterface.commitConfiguration_error_);
         self.assertArgIsOut(CoreWLAN.CWInterface.commitConfiguration_error_, 1);

pyobjc-framework-CoreWLAN/PyObjCTest/test_cwnetworkprofile.py

     @min_os_level('10.7')
     def test_methods10_7(self):
         self.assertResultIsBOOL(CoreWLAN.CWNetworkProfile.isEqualToNetworkProfile_);
-        self.assertResultIsBOOL(CoreWLAN.CWNetworkProfile.isEqualToNetwork_);
-        self.assertResultIsBOOL(CoreWLAN.CWNetworkProfile.supportsSecurity_);
-        self.assertResultIsBOOL(CoreWLAN.CWNetworkProfile.supportsPHYMode_);
-        self.assertResultIsBOOL(CoreWLAN.CWNetworkProfile.isIBSS);
 
 if __name__ == "__main__":
     main()