-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
40 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,19 +112,19 @@ def test_parameters_class(self): | |
self.assertEqual(p['parameter1'], 'Value1') | ||
self.assertEqual(p['PARAMETER1'], 'Value1') | ||
|
||
# Parameter with list of values must be seperated by comma | ||
# Parameter with list of values must be separated by comma | ||
p = Parameters({'parameter1': ['Value1', 'Value2']}) | ||
self.assertEqual(p.to_ical(), b'PARAMETER1=Value1,Value2') | ||
|
||
# Multiple parameters must be seperated by a semicolon | ||
# Multiple parameters must be separated by a semicolon | ||
p = Parameters({'RSVP': 'TRUE', 'ROLE': 'REQ-PARTICIPANT'}) | ||
self.assertEqual(p.to_ical(), b'ROLE=REQ-PARTICIPANT;RSVP=TRUE') | ||
|
||
# Parameter values containing ',;:' must be double quoted | ||
p = Parameters({'ALTREP': 'http://www.wiz.org'}) | ||
self.assertEqual(p.to_ical(), b'ALTREP="http://www.wiz.org"') | ||
|
||
# list items must be quoted seperately | ||
# list items must be quoted separately | ||
p = Parameters({'MEMBER': ['MAILTO:[email protected]', | ||
'MAILTO:[email protected]']}) | ||
self.assertEqual( | ||
|
@@ -172,7 +172,7 @@ def test_parameters_class(self): | |
|
||
def test_parse_and_access_property_params(self): | ||
"""Parse an ics string and access some property parameters then. | ||
This is a follow-up of a question recieved per email. | ||
This is a follow-up of a question received per email. | ||
""" | ||
ics = """BEGIN:VCALENDAR | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# we save all timezone with TZIDs unknow to the TZDB in here | ||
# we save all timezone with TZIDs unknown to the TZDB in here | ||
_timezone_cache = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters