vobject: add upstream tests
This commit is contained in:
14
radicale_vobject/tests/test_files/availablity.ics
Normal file
14
radicale_vobject/tests/test_files/availablity.ics
Normal file
@ -0,0 +1,14 @@
|
||||
BEGIN:VAVAILABILITY
|
||||
UID:test
|
||||
DTSTART:20060216T000000Z
|
||||
DTEND:20060217T000000Z
|
||||
BEGIN:AVAILABLE
|
||||
UID:test1
|
||||
DTSTART:20060216T090000Z
|
||||
DTEND:20060216T120000Z
|
||||
DTSTAMP:20060215T000000Z
|
||||
SUMMARY:Available in the morning
|
||||
END:AVAILABLE
|
||||
BUSYTYPE:BUSY
|
||||
DTSTAMP:20060215T000000Z
|
||||
END:VAVAILABILITY
|
10
radicale_vobject/tests/test_files/badline.ics
Normal file
10
radicale_vobject/tests/test_files/badline.ics
Normal file
@ -0,0 +1,10 @@
|
||||
BEGIN:VCALENDAR
|
||||
METHOD:PUBLISH
|
||||
VERSION:2.0
|
||||
BEGIN:VEVENT
|
||||
DTSTART:19870405T020000
|
||||
X-BAD/SLASH:TRUE
|
||||
X-BAD_UNDERSCORE:TRUE
|
||||
UID:EC9439B1-FF65-11D6-9973-003065F99D04
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
16
radicale_vobject/tests/test_files/badstream.ics
Normal file
16
radicale_vobject/tests/test_files/badstream.ics
Normal file
@ -0,0 +1,16 @@
|
||||
BEGIN:VCALENDAR
|
||||
CALSCALE:GREGORIAN
|
||||
X-WR-TIMEZONE;VALUE=TEXT:US/Pacific
|
||||
METHOD:PUBLISH
|
||||
PRODID:-//Apple Computer\, Inc//iCal 1.0//EN
|
||||
X-WR-CALNAME;VALUE=TEXT:Example
|
||||
VERSION:2.0
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20021028T140000Z
|
||||
BEGIN:VALARM
|
||||
TRIGGER:a20021028120000
|
||||
ACTION:DISPLAY
|
||||
DESCRIPTION:This trigger has a nonsensical value
|
||||
END:VALARM
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
8
radicale_vobject/tests/test_files/freebusy.ics
Normal file
8
radicale_vobject/tests/test_files/freebusy.ics
Normal file
@ -0,0 +1,8 @@
|
||||
BEGIN:VFREEBUSY
|
||||
UID:test
|
||||
DTSTART:20060216T010000Z
|
||||
DTEND:20060216T030000Z
|
||||
DTSTAMP:20060215T000000Z
|
||||
FREEBUSY:20060216T010000Z/PT1H
|
||||
FREEBUSY:20060216T010000Z/20060216T030000Z
|
||||
END:VFREEBUSY
|
15
radicale_vobject/tests/test_files/journal.ics
Normal file
15
radicale_vobject/tests/test_files/journal.ics
Normal file
@ -0,0 +1,15 @@
|
||||
BEGIN:VJOURNAL
|
||||
UID:19970901T130000Z-123405@example.com
|
||||
DTSTAMP:19970901T130000Z
|
||||
DTSTART;VALUE=DATE:19970317
|
||||
SUMMARY:Staff meeting minutes
|
||||
DESCRIPTION:1. Staff meeting: Participants include Joe\,
|
||||
Lisa\, and Bob. Aurora project plans were reviewed.
|
||||
There is currently no budget reserves for this project.
|
||||
Lisa will escalate to management. Next meeting on Tuesday.\n
|
||||
2. Telephone Conference: ABC Corp. sales representative
|
||||
called to discuss new printer. Promised to get us a demo by
|
||||
Friday.\n3. Henry Miller (Handsoff Insurance): Car was
|
||||
totaled by tree. Is looking into a loaner car. 555-2323
|
||||
(tel).
|
||||
END:VJOURNAL
|
85
radicale_vobject/tests/test_files/more_tests.txt
Normal file
85
radicale_vobject/tests/test_files/more_tests.txt
Normal file
@ -0,0 +1,85 @@
|
||||
|
||||
Unicode in vCards
|
||||
.................
|
||||
|
||||
>>> import vobject
|
||||
>>> card = vobject.vCard()
|
||||
>>> card.add('fn').value = u'Hello\u1234 World!'
|
||||
>>> card.add('n').value = vobject.vcard.Name('World', u'Hello\u1234')
|
||||
>>> card.add('adr').value = vobject.vcard.Address(u'5\u1234 Nowhere, Apt 1', 'Berkeley', 'CA', '94704', 'USA')
|
||||
>>> card
|
||||
<VCARD| [<ADR{}5? Nowhere, Apt 1\nBerkeley, CA 94704\nUSA>, <FN{}Hello? World!>, <N{} Hello? World >]>
|
||||
>>> card.serialize()
|
||||
u'BEGIN:VCARD\r\nVERSION:3.0\r\nADR:;;5\u1234 Nowhere\\, Apt 1;Berkeley;CA;94704;USA\r\nFN:Hello\u1234 World!\r\nN:World;Hello\u1234;;;\r\nEND:VCARD\r\n'
|
||||
>>> print(card.serialize())
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
ADR:;;5ሴ Nowhere\, Apt 1;Berkeley;CA;94704;USA
|
||||
FN:Helloሴ World!
|
||||
N:World;Helloሴ;;;
|
||||
END:VCARD
|
||||
|
||||
Helper function
|
||||
...............
|
||||
>>> from pkg_resources import resource_stream
|
||||
>>> def get_stream(path):
|
||||
... try:
|
||||
... return resource_stream(__name__, 'test_files/' + path)
|
||||
... except: # different paths, depending on whether doctest is run directly
|
||||
... return resource_stream(__name__, path)
|
||||
|
||||
Unicode in TZID
|
||||
...............
|
||||
>>> f = get_stream("tzid_8bit.ics")
|
||||
>>> cal = vobject.readOne(f)
|
||||
>>> print(cal.vevent.dtstart.value)
|
||||
2008-05-30 15:00:00+06:00
|
||||
>>> print(cal.vevent.dtstart.serialize())
|
||||
DTSTART;TZID=Екатеринбург:20080530T150000
|
||||
|
||||
Commas in TZID
|
||||
..............
|
||||
>>> f = get_stream("ms_tzid.ics")
|
||||
>>> cal = vobject.readOne(f)
|
||||
>>> print(cal.vevent.dtstart.value)
|
||||
2008-05-30 15:00:00+10:00
|
||||
|
||||
Equality in vCards
|
||||
..................
|
||||
|
||||
>>> card.adr.value == vobject.vcard.Address('Just a street')
|
||||
False
|
||||
>>> card.adr.value == vobject.vcard.Address(u'5\u1234 Nowhere, Apt 1', 'Berkeley', 'CA', '94704', 'USA')
|
||||
True
|
||||
|
||||
Organization (org)
|
||||
..................
|
||||
|
||||
>>> card.add('org').value = ["Company, Inc.", "main unit", "sub-unit"]
|
||||
>>> print(card.org.serialize())
|
||||
ORG:Company\, Inc.;main unit;sub-unit
|
||||
|
||||
Ruby escapes semi-colons in rrules
|
||||
..................................
|
||||
|
||||
>>> f = get_stream("ruby_rrule.ics")
|
||||
>>> cal = vobject.readOne(f)
|
||||
>>> iter(cal.vevent.rruleset).next()
|
||||
datetime.datetime(2003, 1, 1, 7, 0)
|
||||
|
||||
quoted-printable
|
||||
................
|
||||
|
||||
>>> vcf = 'BEGIN:VCARD\nVERSION:2.1\nN;ENCODING=QUOTED-PRINTABLE:;=E9\nFN;ENCODING=QUOTED-PRINTABLE:=E9\nTEL;HOME:0111111111\nEND:VCARD\n\n'
|
||||
>>> vcf = vobject.readOne(vcf)
|
||||
>>> vcf.n.value
|
||||
<Name: ? >
|
||||
>>> vcf.n.value.given
|
||||
u'\xe9'
|
||||
>>> vcf.serialize()
|
||||
'BEGIN:VCARD\r\nVERSION:2.1\r\nFN:\xc3\xa9\r\nN:;\xc3\xa9;;;\r\nTEL:0111111111\r\nEND:VCARD\r\n'
|
||||
|
||||
>>> vcs = 'BEGIN:VCALENDAR\r\nPRODID:-//OpenSync//NONSGML OpenSync vformat 0.3//EN\r\nVERSION:1.0\r\nBEGIN:VEVENT\r\nDESCRIPTION;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:foo =C3=A5=0Abar =C3=A4=\r\n=0Abaz =C3=B6\r\nUID:20080406T152030Z-7822\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n'
|
||||
>>> vcs = vobject.readOne(vcs, allowQP = True)
|
||||
>>> vcs.serialize()
|
||||
'BEGIN:VCALENDAR\r\nVERSION:1.0\r\nPRODID:-//OpenSync//NONSGML OpenSync vformat 0.3//EN\r\nBEGIN:VEVENT\r\nUID:20080406T152030Z-7822\r\nDESCRIPTION:foo \xc3\xa5\\nbar \xc3\xa4\\nbaz \xc3\xb6\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n'
|
39
radicale_vobject/tests/test_files/ms_tzid.ics
Normal file
39
radicale_vobject/tests/test_files/ms_tzid.ics
Normal file
@ -0,0 +1,39 @@
|
||||
BEGIN:VCALENDAR
|
||||
PRODID:-//Microsoft Corporation//Outlook 12.0 MIMEDIR//EN
|
||||
VERSION:2.0
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Canberra, Melbourne, Sydney
|
||||
BEGIN:STANDARD
|
||||
DTSTART:20010325T020000
|
||||
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3;UNTIL=20050327T070000Z
|
||||
TZOFFSETFROM:+1100
|
||||
TZOFFSETTO:+1000
|
||||
TZNAME:Standard Time
|
||||
END:STANDARD
|
||||
BEGIN:STANDARD
|
||||
DTSTART:20060402T020000
|
||||
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=4;UNTIL=20060402T070000Z
|
||||
TZOFFSETFROM:+1100
|
||||
TZOFFSETTO:+1000
|
||||
TZNAME:Standard Time
|
||||
END:STANDARD
|
||||
BEGIN:STANDARD
|
||||
DTSTART:20070325T020000
|
||||
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
|
||||
TZOFFSETFROM:+1100
|
||||
TZOFFSETTO:+1000
|
||||
TZNAME:Standard Time
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:20001029T020000
|
||||
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
|
||||
TZOFFSETFROM:+1000
|
||||
TZOFFSETTO:+1100
|
||||
TZNAME:Daylight Savings Time
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
UID:CommaTest
|
||||
DTSTART;TZID="Canberra, Melbourne, Sydney":20080530T150000
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
@ -0,0 +1,9 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
BEGIN:VEVENT
|
||||
DTSTART;VALUE=DATE:20130117
|
||||
DTEND;VALUE=DATE:20130118
|
||||
RRULE:FREQ=WEEKLY;UNTIL=20130330T230000Z;BYDAY=TH
|
||||
SUMMARY:Meeting
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
@ -0,0 +1,9 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
BEGIN:VEVENT
|
||||
DTSTART;VALUE=DATE:20130117
|
||||
DTEND;VALUE=DATE:20130118
|
||||
RRULE:FREQ=WEEKLY;UNTIL=20130330;BYDAY=TH
|
||||
SUMMARY:Meeting
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
30
radicale_vobject/tests/test_files/recurrence.ics
Normal file
30
radicale_vobject/tests/test_files/recurrence.ics
Normal file
@ -0,0 +1,30 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION
|
||||
:2.0
|
||||
PRODID
|
||||
:-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN
|
||||
BEGIN:VEVENT
|
||||
CREATED
|
||||
:20060327T214227Z
|
||||
LAST-MODIFIED
|
||||
:20060313T080829Z
|
||||
DTSTAMP
|
||||
:20060116T231602Z
|
||||
UID
|
||||
:70922B3051D34A9E852570EC00022388
|
||||
SUMMARY
|
||||
:Monthly - All Hands Meeting with Joe Smith
|
||||
STATUS
|
||||
:CONFIRMED
|
||||
CLASS
|
||||
:PUBLIC
|
||||
RRULE
|
||||
:FREQ=MONTHLY;UNTIL=20061228;INTERVAL=1;BYDAY=4TH
|
||||
DTSTART
|
||||
:20060126T230000Z
|
||||
DTEND
|
||||
:20060127T000000Z
|
||||
DESCRIPTION
|
||||
:Repeat Meeting: - Occurs every 4th Thursday of each month
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
16
radicale_vobject/tests/test_files/ruby_rrule.ics
Normal file
16
radicale_vobject/tests/test_files/ruby_rrule.ics
Normal file
@ -0,0 +1,16 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
PRODID:-//LinkeSOFT GmbH//NONSGML DIMEX//EN
|
||||
BEGIN:VEVENT
|
||||
SEQUENCE:0
|
||||
RRULE:FREQ=DAILY\;COUNT=10
|
||||
DTEND:20030101T080000
|
||||
UID:2008-05-29T17:31:42+02:00_865561242
|
||||
CATEGORIES:Unfiled
|
||||
SUMMARY:Something
|
||||
DTSTART:20030101T070000
|
||||
DTSTAMP:20080529T152100
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
5
radicale_vobject/tests/test_files/silly_test.ics
Normal file
5
radicale_vobject/tests/test_files/silly_test.ics
Normal file
@ -0,0 +1,5 @@
|
||||
sillyname:name
|
||||
profile:sillyprofile
|
||||
stuff:folded
|
||||
line
|
||||
morestuff;asinine:this line is not folded, but in practice probably ought to be, as it is exceptionally long, and moreover demonstratively stupid
|
11
radicale_vobject/tests/test_files/simple_2_0_test.ics
Normal file
11
radicale_vobject/tests/test_files/simple_2_0_test.ics
Normal file
@ -0,0 +1,11 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
|
||||
BEGIN:VEVENT
|
||||
UID:Not very random UID
|
||||
DTSTART:20060509T000000
|
||||
CREATED:20060101T180000Z
|
||||
DESCRIPTION:Test event
|
||||
DTSTAMP:20170626T000000Z
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
13
radicale_vobject/tests/test_files/simple_3_0_test.ics
Normal file
13
radicale_vobject/tests/test_files/simple_3_0_test.ics
Normal file
@ -0,0 +1,13 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
FN:Daffy Duck Knudson (with Bugs Bunny and Mr. Pluto)
|
||||
N:Knudson;Daffy Duck (with Bugs Bunny and Mr. Pluto)
|
||||
NICKNAME:gnat and gnu and pluto
|
||||
BDAY;value=date:02-10
|
||||
TEL;type=HOME:+01-(0)2-765.43.21
|
||||
TEL;type=CELL:+01-(0)5-555.55.55
|
||||
ACCOUNT;type=HOME:010-1234567-05
|
||||
ADR;type=HOME:;;Haight Street 512\;\nEscape\, Test;Novosibirsk;;80214;Gnuland
|
||||
TEL;type=HOME:+01-(0)2-876.54.32
|
||||
ORG:University of Novosibirsk;Department of Octopus Parthenogenesis
|
||||
END:VCARD
|
5
radicale_vobject/tests/test_files/simple_test.ics
Normal file
5
radicale_vobject/tests/test_files/simple_test.ics
Normal file
@ -0,0 +1,5 @@
|
||||
BEGIN:VCALENDAR
|
||||
BEGIN:VEVENT
|
||||
SUMMARY;blah=hi!:Bastille Day Party
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
41
radicale_vobject/tests/test_files/standard_test.ics
Normal file
41
radicale_vobject/tests/test_files/standard_test.ics
Normal file
@ -0,0 +1,41 @@
|
||||
BEGIN:VCALENDAR
|
||||
CALSCALE:GREGORIAN
|
||||
X-WR-TIMEZONE;VALUE=TEXT:US/Pacific
|
||||
METHOD:PUBLISH
|
||||
PRODID:-//Apple Computer\, Inc//iCal 1.0//EN
|
||||
X-WR-CALNAME;VALUE=TEXT:Example
|
||||
VERSION:2.0
|
||||
BEGIN:VEVENT
|
||||
SEQUENCE:5
|
||||
DTSTART;TZID=US/Pacific:20021028T140000
|
||||
RRULE:FREQ=Weekly;COUNT=10
|
||||
DTSTAMP:20021028T011706Z
|
||||
SUMMARY:Coffee with Jason
|
||||
UID:EC9439B1-FF65-11D6-9973-003065F99D04
|
||||
DTEND;TZID=US/Pacific:20021028T150000
|
||||
BEGIN:VALARM
|
||||
TRIGGER;VALUE=DURATION:-P1D
|
||||
ACTION:DISPLAY
|
||||
DESCRIPTION:Event reminder\, with comma\nand line feed
|
||||
END:VALARM
|
||||
END:VEVENT
|
||||
BEGIN:VTIMEZONE
|
||||
X-LIC-LOCATION:Random location
|
||||
TZID:US/Pacific
|
||||
LAST-MODIFIED:19870101T000000Z
|
||||
BEGIN:STANDARD
|
||||
DTSTART:19671029T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
|
||||
TZOFFSETFROM:-0700
|
||||
TZOFFSETTO:-0800
|
||||
TZNAME:PST
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:19870405T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
|
||||
TZOFFSETFROM:-0800
|
||||
TZOFFSETTO:-0700
|
||||
TZNAME:PDT
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
||||
END:VCALENDAR
|
107
radicale_vobject/tests/test_files/timezones.ics
Normal file
107
radicale_vobject/tests/test_files/timezones.ics
Normal file
@ -0,0 +1,107 @@
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:US/Pacific
|
||||
BEGIN:STANDARD
|
||||
DTSTART:19671029T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
|
||||
TZOFFSETFROM:-0700
|
||||
TZOFFSETTO:-0800
|
||||
TZNAME:PST
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:19870405T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
|
||||
TZOFFSETFROM:-0800
|
||||
TZOFFSETTO:-0700
|
||||
TZNAME:PDT
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
||||
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:US/Eastern
|
||||
BEGIN:STANDARD
|
||||
DTSTART:19671029T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
|
||||
TZOFFSETFROM:-0400
|
||||
TZOFFSETTO:-0500
|
||||
TZNAME:EST
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:19870405T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
|
||||
TZOFFSETFROM:-0500
|
||||
TZOFFSETTO:-0400
|
||||
TZNAME:EDT
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
||||
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Santiago
|
||||
BEGIN:STANDARD
|
||||
DTSTART:19700314T000000
|
||||
TZOFFSETFROM:-0300
|
||||
TZOFFSETTO:-0400
|
||||
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SA
|
||||
TZNAME:Pacific SA Standard Time
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:19701010T000000
|
||||
TZOFFSETFROM:-0400
|
||||
TZOFFSETTO:-0300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=2SA
|
||||
TZNAME:Pacific SA Daylight Time
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
||||
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:W. Europe
|
||||
BEGIN:STANDARD
|
||||
DTSTART:19701025T030000
|
||||
TZOFFSETFROM:+0200
|
||||
TZOFFSETTO:+0100
|
||||
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
|
||||
TZNAME:W. Europe Standard Time
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:19700329T020000
|
||||
TZOFFSETFROM:+0100
|
||||
TZOFFSETTO:+0200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
|
||||
TZNAME:W. Europe Daylight Time
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
||||
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:US/Fictitious-Eastern
|
||||
LAST-MODIFIED:19870101T000000Z
|
||||
BEGIN:STANDARD
|
||||
DTSTART:19671029T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
|
||||
TZOFFSETFROM:-0400
|
||||
TZOFFSETTO:-0500
|
||||
TZNAME:EST
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:19870405T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4;UNTIL=20050403T070000Z
|
||||
TZOFFSETFROM:-0500
|
||||
TZOFFSETTO:-0400
|
||||
TZNAME:EDT
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
||||
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:America/Montreal
|
||||
LAST-MODIFIED:20051013T233643Z
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:20050403T070000
|
||||
TZOFFSETTO:-0400
|
||||
TZOFFSETFROM:+0000
|
||||
TZNAME:EDT
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
DTSTART:20051030T020000
|
||||
TZOFFSETTO:-0500
|
||||
TZOFFSETFROM:-0400
|
||||
TZNAME:EST
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
31
radicale_vobject/tests/test_files/tz_us_eastern.ics
Normal file
31
radicale_vobject/tests/test_files/tz_us_eastern.ics
Normal file
@ -0,0 +1,31 @@
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:US/Eastern
|
||||
BEGIN:STANDARD
|
||||
DTSTART:20001029T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10;UNTIL=20061029T060000Z
|
||||
TZNAME:EST
|
||||
TZOFFSETFROM:-0400
|
||||
TZOFFSETTO:-0500
|
||||
END:STANDARD
|
||||
BEGIN:STANDARD
|
||||
DTSTART:20071104T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11
|
||||
TZNAME:EST
|
||||
TZOFFSETFROM:-0400
|
||||
TZOFFSETTO:-0500
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:20000402T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4;UNTIL=20060402T070000Z
|
||||
TZNAME:EDT
|
||||
TZOFFSETFROM:-0500
|
||||
TZOFFSETTO:-0400
|
||||
END:DAYLIGHT
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:20070311T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3
|
||||
TZNAME:EDT
|
||||
TZOFFSETFROM:-0500
|
||||
TZOFFSETTO:-0400
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
23
radicale_vobject/tests/test_files/tzid_8bit.ics
Normal file
23
radicale_vobject/tests/test_files/tzid_8bit.ics
Normal file
@ -0,0 +1,23 @@
|
||||
BEGIN:VCALENDAR
|
||||
PRODID:-//Microsoft Corporation//Outlook 12.0 MIMEDIR//EN
|
||||
VERSION:2.0
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Екатеринбург
|
||||
BEGIN:STANDARD
|
||||
DTSTART:16011028T030000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
|
||||
TZOFFSETFROM:+0600
|
||||
TZOFFSETTO:+0500
|
||||
END:STANDARD
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:16010325T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
|
||||
TZOFFSETFROM:+0500
|
||||
TZOFFSETTO:+0600
|
||||
END:DAYLIGHT
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
UID:CyrillicTest
|
||||
DTSTART;TZID=Екатеринбург:20080530T150000
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
39
radicale_vobject/tests/test_files/utf8_test.ics
Normal file
39
radicale_vobject/tests/test_files/utf8_test.ics
Normal file
@ -0,0 +1,39 @@
|
||||
BEGIN:VCALENDAR
|
||||
METHOD:PUBLISH
|
||||
CALSCALE:GREGORIAN
|
||||
PRODID:-//EVDB//www.evdb.com//EN
|
||||
VERSION:2.0
|
||||
X-WR-CALNAME:EVDB Event Feed
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20060922T000100Z
|
||||
DTEND:20060922T050100Z
|
||||
DTSTAMP:20050914T163414Z
|
||||
SUMMARY:The title こんにちはキティ
|
||||
DESCRIPTION:hello\nHere is a description\n\n\nこんにちはキティ
|
||||
\n\n\n\nZwei Java-schwere Entwicklerpositionen und irgendeine Art sond
|
||||
erbar-klingende Netzsichtbarmachungöffnung\, an einer interessanten F
|
||||
irma im Gebäude\, in dem ich angerufenen Semantic Research bearbeite.
|
||||
1. Zauberer Des Semantica Software Engineer 2. Älterer Semantica Sof
|
||||
tware-Englisch-3. Graph/Semantica Netz-Visualization/Navigation Sie ei
|
||||
ngestufte Software-Entwicklung für die Regierung. Die Firma ist stark
|
||||
und die Projekte sind sehr kühl und schließen irgendeinen Spielraum
|
||||
ein. Wenn ich Ihnen irgendwie mehr erkläre\, muß ich Sie töten. Ps
|
||||
. Tat schnell -- jemand ist\, wenn es hier interviewt\, wie ich dieses
|
||||
schreibe. Er schaut intelligent (er trägt Kleidhosen) Semantica Soft
|
||||
ware Engineer FIRMA: Semantische Forschung\, Inc. REPORTS ZU: Vizeprä
|
||||
sident\, Produkt-Entwicklung POSITION: San Diego (Pint Loma) WEB SITE:
|
||||
www.semanticresearch.com email: dorie@semanticresearch.com FIRMA-HINT
|
||||
ERGRUND Semantische Forschung ist der führende Versorger der semantis
|
||||
cher Netzwerkanschluß gegründeten nicht linearen Wissen Darstellung
|
||||
Werkzeuge. Die Firma stellt diese Werkzeuge zum Intel\, zur reg.\, zum
|
||||
EDU und zu den kommerziellen Märkten zur Verfügung. BRINGEN SIE ZUS
|
||||
AMMENFASSUNG IN POSITION Semantische Forschung\, Inc. basiert in San D
|
||||
iego\, Ca im alten realen Weltsan Diego Haus...\, das wir den Weltbest
|
||||
en Platz haben zum zu arbeiten. Wir suchen nach Superstarentwicklern\,
|
||||
um uns in der fortfahrenden Entwicklung unserer Semantica Produktseri
|
||||
e zu unterstützen.
|
||||
LOCATION:こんにちはキティ
|
||||
SEQUENCE:0
|
||||
UID:E0-001-000276068-2
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
18
radicale_vobject/tests/test_files/vcard_with_groups.ics
Normal file
18
radicale_vobject/tests/test_files/vcard_with_groups.ics
Normal file
@ -0,0 +1,18 @@
|
||||
home.begin:vcard
|
||||
version:3.0
|
||||
source:ldap://cn=Meister%20Berger,o=Universitaet%20Goerlitz,c=DE
|
||||
name:Meister Berger
|
||||
fn:Meister Berger
|
||||
n:Berger;Meister
|
||||
bday;value=date:1963-09-21
|
||||
o:Universit=E6t G=F6rlitz
|
||||
title:Mayor
|
||||
title;language=de;value=text:Burgermeister
|
||||
note:The Mayor of the great city of
|
||||
Goerlitz in the great country of Germany.\nNext line.
|
||||
email;internet:mb@goerlitz.de
|
||||
home.tel;type=fax,voice;type=msg:+49 3581 123456
|
||||
home.label:Hufenshlagel 1234\n
|
||||
02828 Goerlitz\n
|
||||
Deutschland
|
||||
END:VCARD
|
13
radicale_vobject/tests/test_files/vtodo.ics
Normal file
13
radicale_vobject/tests/test_files/vtodo.ics
Normal file
@ -0,0 +1,13 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Example Corp.//CalDAV Client//EN
|
||||
BEGIN:VTODO
|
||||
UID:20070313T123432Z-456553@example.com
|
||||
DTSTAMP:20070313T123432Z
|
||||
DUE;VALUE=DATE:20070501
|
||||
SUMMARY:Submit Quebec Income Tax Return for 2006
|
||||
CLASS:CONFIDENTIAL
|
||||
CATEGORIES:FAMILY,FINANCE
|
||||
STATUS:NEEDS-ACTION
|
||||
END:VTODO
|
||||
END:VCALENDAR
|
Reference in New Issue
Block a user