[PyObjC-svn] r2039 - in trunk/pyobjc/pyobjc-framework-InstallerPlugins: . PyObjCTest

[email protected]
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Thu Jan 22 10:17:48 2009
New Revision: 2039

Log:
Full API test coverage on Leopard

Added:
   trunk/pyobjc/pyobjc-framework-InstallerPlugins/PyObjCTest/test_installerpane.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-InstallerPlugins/PyObjCTest/test_installersection.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-InstallerPlugins/PyObjCTest/test_installerstate.py   (contents, props changed)
Modified:
   trunk/pyobjc/pyobjc-framework-InstallerPlugins/PyObjCTest/test_installerplugins.py
   trunk/pyobjc/pyobjc-framework-InstallerPlugins/setup.py

Modified: trunk/pyobjc/pyobjc-framework-InstallerPlugins/PyObjCTest/test_installerplugins.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-InstallerPlugins/PyObjCTest/test_installerplugins.py	(original)
+++ trunk/pyobjc/pyobjc-framework-InstallerPlugins/PyObjCTest/test_installerplugins.py	Thu Jan 22 10:17:48 2009
@@ -2,10 +2,10 @@
 Some simple tests to check that the framework is properly wrapped.
 '''
 import objc
-import unittest
+from PyObjCTools.TestSupport import *
 import InstallerPlugins
 
-class TestInstallerPlugins (unittest.TestCase):
+class TestInstallerPlugins (TestCase):
     def testClasses(self):
         self.assert_( hasattr(InstallerPlugins, 'InstallerSection') )
         self.assert_( isinstance(InstallerPlugins.InstallerSection, objc.objc_class) )
@@ -14,19 +14,6 @@
         self.assert_( isinstance(InstallerPlugins.InstallerPane, objc.objc_class) )
 
 
-    def testValues(self):
-        self.assert_( hasattr(InstallerPlugins, 'InstallerDirectionBackward') )
-        self.assert_( isinstance(InstallerPlugins.InstallerDirectionBackward, (int, long)) )
-        self.assertEquals(InstallerPlugins.InstallerDirectionBackward, 1)
-
-    def testVariables(self):
-        self.assert_( hasattr(InstallerPlugins, 'InstallerState_Choice_Identifier') )
-        self.assert_( isinstance(InstallerPlugins.InstallerState_Choice_Identifier, unicode) )
-
-        self.assert_( hasattr(InstallerPlugins, 'InstallerState_Choice_CustomLocation') )
-        self.assert_( isinstance(InstallerPlugins.InstallerState_Choice_CustomLocation, unicode) )
-
-
 if __name__ == "__main__":
-    unittest.main()
+    main()
 

Modified: trunk/pyobjc/pyobjc-framework-InstallerPlugins/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-InstallerPlugins/setup.py	(original)
+++ trunk/pyobjc/pyobjc-framework-InstallerPlugins/setup.py	Thu Jan 22 10:17:48 2009
@@ -18,7 +18,7 @@
 
 setup(
     name='pyobjc-framework-InstallerPlugins',
-    version='2.0',
+    version='2.2b1',
     description = "Wrappers for the framework InstallerPlugins 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.