collective/icalendar — pull request #34 by mikaelfrykholm (2012-02-28 14:03:26+00:00)
Title: unit tests

My line of thought is to fix the tests as
non-intrusive as possible. There seems to be some confusion in the code
about timezones. The Component base class method add() is looking for datetime objects
with timezone information and appends to params. The vDatetime object does
the same in to_ical(). From the unit test on line 719 in prop.py it looks like
the output should be UTC but the code does not convert to UTC, instead it
makes sure to keep the supplied timezone.

In the future it might be a good idea to convert all timestamps to UTC anyway as pytz recommends all operations should be avoided on localtime datetime objects.