[CMF-checkins] CVS: CMF - test_Event.py:1.2
andrew@digicool.com
andrew@digicool.com
Fri, 8 Jun 2001 11:22:42 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCalendar/tests
In directory korak.digicool.com:/tmp/cvs-serv19544/tests
Modified Files:
test_Event.py
Log Message:
*Due to overloading the DC expiration_date and effective_date
attributes, events were unviewable to anonymous and members of a
portal.
--Added start_date and end_date attributes to Event.py
--Added start and end methods to Event.py
--Fixed dtml methods to use the new methods and attributes
--- Updated File test_Event.py in package CMF --
--- test_Event.py 2001/05/30 22:08:38 1.1
+++ test_Event.py 2001/06/08 15:22:41 1.2
@@ -12,7 +12,6 @@
def test_edit(self):
event = Event('editing')
- #import pdb; pdb.set_trace()
event.edit( title='title'
, description='description'
, eventType=( 'eventType', )
@@ -30,8 +29,10 @@
assert event.Title() == 'title'
assert event.Description() == 'description'
assert event.Subject() == ( 'eventType', ), event.Subject()
- assert event.effective() == DateTime('1999/01/01 00:00')
- assert event.expires() == DateTime('1999/12/31 23:59')
+ assert event.effective_date == None
+ assert event.expiration_date == None
+ assert event.end() == DateTime('1999/12/31 23:59')
+ assert event.start() == DateTime('1999/01/01 00:00')
assert not event.contact_name
def test_puke(self):