-
-
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
17 changed files
with
88 additions
and
53 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
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 |
---|---|---|
|
@@ -40,7 +40,7 @@ def test_long_lines(self): | |
) | ||
self.assertEqual( | ||
Contentlines.from_ical( | ||
"A faked\r\n long line\r\nAnd another " "lin\r\n\te that is folded\r\n" | ||
"A faked\r\n long line\r\nAnd another lin\r\n\te that is folded\r\n" | ||
), | ||
["A faked long line", "And another line that is folded", ""], | ||
) | ||
|
@@ -112,7 +112,7 @@ def test_contentline_class(self): | |
) | ||
|
||
c = Contentline( | ||
"ATTENDEE;CN=Max Rasmussen;ROLE=REQ-PARTICIPANT:" "MAILTO:[email protected]" | ||
"ATTENDEE;CN=Max Rasmussen;ROLE=REQ-PARTICIPANT:MAILTO:[email protected]" | ||
) | ||
self.assertEqual( | ||
c.parts(), | ||
|
@@ -124,7 +124,7 @@ def test_contentline_class(self): | |
) | ||
self.assertEqual( | ||
c.to_ical().decode("utf-8"), | ||
"ATTENDEE;CN=Max Rasmussen;ROLE=REQ-PARTICIPANT:" "MAILTO:[email protected]", | ||
"ATTENDEE;CN=Max Rasmussen;ROLE=REQ-PARTICIPANT:MAILTO:[email protected]", | ||
) | ||
|
||
# and back again | ||
|
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 |
---|---|---|
|
@@ -13,20 +13,20 @@ def test_tools_UIDGenerator(self): | |
|
||
txt = uid.to_ical() | ||
length = 15 + 1 + 16 + 1 + 11 | ||
self.assertTrue(len(txt) == length) | ||
self.assertTrue(b"@example.com" in txt) | ||
self.assertEqual(len(txt), length) | ||
self.assertIn(b"@example.com", txt) | ||
|
||
# You should at least insert your own hostname to be more compliant | ||
uid = g.uid("Example.ORG") | ||
txt = uid.to_ical() | ||
self.assertTrue(len(txt) == length) | ||
self.assertTrue(b"@Example.ORG" in txt) | ||
self.assertEqual(len(txt), length) | ||
self.assertIn(b"@Example.ORG", txt) | ||
|
||
# You can also insert a path or similar | ||
uid = g.uid("Example.ORG", "/path/to/content") | ||
txt = uid.to_ical() | ||
self.assertTrue(len(txt) == length) | ||
self.assertTrue(b"-/path/to/[email protected]" in txt) | ||
self.assertEqual(len(txt), length) | ||
self.assertIn(b"-/path/to/[email protected]", txt) | ||
|
||
|
||
@pytest.mark.parametrize( | ||
|
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