vContent

Annotated tests/test_calendar.py

28:549fe3cdaf74
2013-05-05 Paul Boddie Updated the version number.
paul@4 1
#!/usr/bin/env python
paul@4 2
paul@10 3
import codecs, vCalendar, os
paul@4 4
paul@10 5
this_dir = os.path.split(__file__)[0]
paul@10 6
f = codecs.open(os.path.join(this_dir, "test.ics"), encoding="utf-8")
paul@12 7
try:
paul@12 8
    doc = vCalendar.parse(f)
paul@12 9
finally:
paul@12 10
    f.close()
paul@4 11
paul@4 12
# vim: tabstop=4 expandtab shiftwidth=4