[PyObjC-svn] r2030 - in trunk/pyobjc/pyobjc-framework-CalendarStore: . Exceptions PyObjCTest
[email protected] Thu, 15 Jan 2009 08:10:49 -0600
Newsgroups
gmane.comp.python.pyobjc.cvs
Message-ID
<[email protected] >
Author: ronaldoussoren
Date: Thu Jan 15 08:10:49 2009
New Revision: 2030
Log:
Complete test coverage on Leopard
Added:
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calalarm.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calattendee.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calcalendar.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calcalendaritem.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calcalendarstore.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calendarstoreerrors.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calevent.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calrecurrencerule.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_caltask.py (contents, props changed)
Modified:
trunk/pyobjc/pyobjc-framework-CalendarStore/Exceptions/CalendarStore.bridgesupport
trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calendarstore.py
trunk/pyobjc/pyobjc-framework-CalendarStore/setup.py
Modified: trunk/pyobjc/pyobjc-framework-CalendarStore/Exceptions/CalendarStore.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-CalendarStore/Exceptions/CalendarStore.bridgesupport (original)
+++ trunk/pyobjc/pyobjc-framework-CalendarStore/Exceptions/CalendarStore.bridgesupport Thu Jan 15 08:10:49 2009
@@ -81,4 +81,24 @@
<arg index='1' null_accepted='true' type_modifier='o' />
</method>
</class>
+ <class name='CalCalendarStore'>
+ <method selector='removeCalendar:error:'>
+ <arg index='1' null_accepted='true' type_modifier='o' />
+ </method>
+ <method selector='removeEvent:span:error:'>
+ <arg index='2' null_accepted='true' type_modifier='o' />
+ </method>
+ <method selector='removeTask:error:'>
+ <arg index='1' null_accepted='true' type_modifier='o' />
+ </method>
+ <method selector='saveCalendar:error:'>
+ <arg index='1' null_accepted='true' type_modifier='o' />
+ </method>
+ <method selector='saveEvent:span:error:'>
+ <arg index='2' null_accepted='true' type_modifier='o' />
+ </method>
+ <method selector='saveTask:error:'>
+ <arg index='1' null_accepted='true' type_modifier='o' />
+ </method>
+ </class>
</signatures>
Modified: trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calendarstore.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calendarstore.py (original)
+++ trunk/pyobjc/pyobjc-framework-CalendarStore/PyObjCTest/test_calendarstore.py Thu Jan 15 08:10:49 2009
@@ -2,38 +2,16 @@
Some simple tests to check that the framework is properly wrapped.
'''
import objc
-import unittest
import CalendarStore
+from PyObjCTools.TestSupport import *
-class TestCalendarStore (unittest.TestCase):
+class TestCalendarStore (TestCase):
def testClasses(self):
self.assert_( hasattr(CalendarStore, 'CalAlarm') )
self.assert_( isinstance(CalendarStore.CalAlarm, objc.objc_class) )
self.assert_( hasattr(CalendarStore, 'CalNthWeekDay') )
self.assert_( isinstance(CalendarStore.CalNthWeekDay, objc.objc_class) )
- def testValues(self):
- # Integer values:
- self.assert_( hasattr(CalendarStore, 'CalSpanThisEvent') )
- self.assert_( isinstance(CalendarStore.CalSpanThisEvent, (int, long)) )
- self.assertEquals(CalendarStore.CalSpanThisEvent, 0)
-
- self.assert_( hasattr(CalendarStore, 'CalRecurrenceYearly') )
- self.assert_( isinstance(CalendarStore.CalRecurrenceYearly, (int, long)) )
- self.assertEquals(CalendarStore.CalRecurrenceYearly, 3)
-
- def testVariables(self):
- # Use this to test for global variables, (NSString*'s and the like)
- self.assert_( hasattr(CalendarStore, 'CalAlarmActionDisplay') )
- self.assert_( isinstance(CalendarStore.CalAlarmActionDisplay, unicode) )
- self.assert_( hasattr(CalendarStore, 'CalAttendeeStatusDeclined') )
- self.assert_( isinstance(CalendarStore.CalAttendeeStatusDeclined, unicode) )
- self.assert_( hasattr(CalendarStore, 'CalUpdatedRecordsKey') )
- self.assert_( isinstance(CalendarStore.CalUpdatedRecordsKey, unicode) )
-
- self.assert_( hasattr(CalendarStore, 'CalDefaultRecurrenceInterval') )
- self.assert_( isinstance(CalendarStore.CalDefaultRecurrenceInterval, (int, long)) )
-
if __name__ == "__main__":
- unittest.main()
+ main()
Modified: trunk/pyobjc/pyobjc-framework-CalendarStore/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-CalendarStore/setup.py (original)
+++ trunk/pyobjc/pyobjc-framework-CalendarStore/setup.py Thu Jan 15 08:10:49 2009
@@ -18,7 +18,7 @@
setup(
name='pyobjc-framework-CalendarStore',
- version='2.0',
+ version='2.2b1',
description = "Wrappers for the framework CalendarStore 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