summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-004-icalendar.py
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2016-05-04 15:53:48 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-05-04 15:53:48 +0200
commitc204eaaa2c9a006432fe00489a352833143db01d (patch)
tree18860f2e335b9a98d34f404d5c4b81d22f2ce222 /tests/unit/test-004-icalendar.py
parent4a24e0cc403321713ee1201ade9d36956da1c060 (diff)
downloadpykolab-c204eaaa2c9a006432fe00489a352833143db01d.tar.gz
CS fixes according to PEP8 (ignored mostly line-length errors only)
Summary: . Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D134
Diffstat (limited to 'tests/unit/test-004-icalendar.py')
-rw-r--r--tests/unit/test-004-icalendar.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/unit/test-004-icalendar.py b/tests/unit/test-004-icalendar.py
index 6033a33..519599b 100644
--- a/tests/unit/test-004-icalendar.py
+++ b/tests/unit/test-004-icalendar.py
@@ -2,6 +2,7 @@ from email import message_from_string
import icalendar
import unittest
+
class TestICalendar(unittest.TestCase):
def test_001_from_message_recurrence(self):
@@ -89,16 +90,15 @@ END:VCALENDAR
self.assertTrue(message.is_multipart())
- itip_methods = [ "REQUEST" ]
+ itip_methods = ["REQUEST"]
# Check each part
for part in message.walk():
-
# The iTip part MUST be Content-Type: text/calendar (RFC 6047,
# section 2.4)
if part.get_content_type() == "text/calendar":
if not part.get_param('method') in itip_methods:
- raise Exception, "method not interesting"
+ raise Exception("method not interesting")
# Get the itip_payload
itip_payload = part.get_payload(decode=True)
@@ -196,16 +196,15 @@ END:VCALENDAR
self.assertTrue(message.is_multipart())
- itip_methods = [ "REQUEST" ]
+ itip_methods = ["REQUEST"]
# Check each part
for part in message.walk():
-
# The iTip part MUST be Content-Type: text/calendar (RFC 6047,
# section 2.4)
if part.get_content_type() == "text/calendar":
if not part.get_param('method') in itip_methods:
- raise Exception, "method not interesting"
+ raise Exception("method not interesting")
# Get the itip_payload
itip_payload = part.get_payload(decode=True)