Author: ronaldoussoren
Date: Sun Jan 25 07:49:51 2009
New Revision: 2044
Log:
Full API test coverage on Leopard
Added:
trunk/pyobjc/pyobjc-framework-PubSub/Lib/PubSub/PyObjC.bridgesupport
trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_psclient.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_psenclosure.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_psentry.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_psfeed.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_psfeedsettings.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_pslink.py (contents, props changed)
Removed:
trunk/pyobjc/pyobjc-framework-PubSub/Lib/PubSub/PyObjCOverrides.bridgesupport
Modified:
trunk/pyobjc/pyobjc-framework-PubSub/Exceptions/PubSub.bridgesupport
trunk/pyobjc/pyobjc-framework-PubSub/Lib/ (props changed)
trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_pubsub.py
trunk/pyobjc/pyobjc-framework-PubSub/setup.py
Modified: trunk/pyobjc/pyobjc-framework-PubSub/Exceptions/PubSub.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-PubSub/Exceptions/PubSub.bridgesupport (original)
+++ trunk/pyobjc/pyobjc-framework-PubSub/Exceptions/PubSub.bridgesupport Sun Jan 25 07:49:51 2009
@@ -41,4 +41,14 @@
<arg index='0' null_accepted='true' type_modifier='o' />
</method>
</class>
+ <class name='PSEnclosure'>
+ <method selector='download:'>
+ <arg index='0' null_accepted='true' type_modifier='o' />
+ </method>
+ </class>
+ <class name='PSFeed'>
+ <method selector='refresh:'>
+ <arg index='0' null_accepted='true' type_modifier='o' />
+ </method>
+ </class>
</signatures>
Modified: trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_pubsub.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_pubsub.py (original)
+++ trunk/pyobjc/pyobjc-framework-PubSub/PyObjCTest/test_pubsub.py Sun Jan 25 07:49:51 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 PubSub
-class TestPubSub (unittest.TestCase):
+class TestPubSub (TestCase):
def testClasses(self):
self.assert_( hasattr(PubSub, 'PSAuthor') )
self.assert_( isinstance(PubSub.PSAuthor, objc.objc_class) )
@@ -18,38 +18,7 @@
self.assert_( hasattr(PubSub.protocols, 'PSClientDelegate') )
self.assert_( isinstance(PubSub.protocols.PSClientDelegate, objc.informal_protocol) )
- def testValues(self):
- self.assert_( hasattr(PubSub, 'PSFeedSettingsIntervalDefault') )
- self.assert_( isinstance(PubSub.PSFeedSettingsIntervalDefault, float) )
- self.assertEquals(PubSub.PSFeedSettingsIntervalDefault, 0.0)
-
- self.assert_( hasattr(PubSub, 'PSFeedSettingsAllTypes') )
- self.assert_( PubSub.PSFeedSettingsAllTypes is None )
-
- def testVariables(self):
-
- self.assert_( hasattr(PubSub, 'PSFeedUpdatedEntriesKey') )
- self.assert_( isinstance(PubSub.PSFeedUpdatedEntriesKey, unicode) )
-
- # Bug!: the following definition is present in the header file but
- # not in the actual system (9A321)
- #self.assert_( hasattr(PubSub, 'PSEnclosureDownloadStateDidChange') )
- #self.assert_( isinstance(PubSub.PSEnclosureDownloadStateDidChange, unicode) )
-
- def testFunctions(self):
- # Use this to test for functions
- pass
-
- # self.assert_( hasattr(PubSub, 'FUNCTION') )
-
- def testOpaque(self):
- # Use this to test for opaque pointers
- pass
-
- # self.assert_( hasattr(PubSub, 'OPAQUE') )
-
-
if __name__ == "__main__":
- unittest.main()
+ main()
Modified: trunk/pyobjc/pyobjc-framework-PubSub/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-PubSub/setup.py (original)
+++ trunk/pyobjc/pyobjc-framework-PubSub/setup.py Sun Jan 25 07:49:51 2009
@@ -18,7 +18,7 @@
setup(
name='pyobjc-framework-PubSub',
- version='2.0',
+ version='2.2b1',
description = "Wrappers for the framework PubSub 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.