summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-005-timezone.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-005-timezone.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-005-timezone.py')
-rw-r--r--tests/unit/test-005-timezone.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/unit/test-005-timezone.py b/tests/unit/test-005-timezone.py
index fc67eaa..47a6947 100644
--- a/tests/unit/test-005-timezone.py
+++ b/tests/unit/test-005-timezone.py
@@ -11,10 +11,11 @@ from pykolab.xml import InvalidAttendeeParticipantStatusError
from pykolab.xml import InvalidEventDateError
from pykolab.xml import event_from_ical
+
class TestTimezone(unittest.TestCase):
def test_001_timezone_conflict(self):
- #class datetime.timedelta([days[, seconds[, microseconds[, milliseconds[, minutes[, hours[, weeks]]]]]]])
+ # class datetime.timedelta([days[, seconds[, microseconds[, milliseconds[, minutes[, hours[, weeks]]]]]]])
tdelta = datetime.timedelta(0, 0, 0, 0, 0, 1)
event_start = datetime.datetime.now(pytz.timezone("UTC"))
@@ -37,16 +38,16 @@ class TestTimezone(unittest.TestCase):
london_xml = london.__str__()
zurich_xml = zurich.__str__()
- #print london_xml
- #print zurich_xml
+ # print london_xml
+ # print zurich_xml
london_itip = london.as_string_itip()
zurich_itip = zurich.as_string_itip()
del london, zurich
- #print london_itip
- #print zurich_itip
+ # print london_itip
+ # print zurich_itip
london_cal = icalendar.Calendar.from_ical(london_itip)
london = event_from_ical(london_cal.walk('VEVENT')[0].to_ical())
@@ -54,22 +55,21 @@ class TestTimezone(unittest.TestCase):
zurich_cal = icalendar.Calendar.from_ical(zurich_itip)
zurich = event_from_ical(zurich_cal.walk('VEVENT')[0].to_ical())
- #fp = open(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'event-london1')), 'w')
- #fp.write(london_xml)
- #fp.close()
+ # fp = open(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'event-london1')), 'w')
+ # fp.write(london_xml)
+ # fp.close()
- #fp = open(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'event-london2')), 'w')
- #fp.write(london.__str__())
- #fp.close()
+ # fp = open(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'event-london2')), 'w')
+ # fp.write(london.__str__())
+ # fp.close()
- #fp = open(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'event-zurich1')), 'w')
- #fp.write(zurich_xml)
- #fp.close()
+ # fp = open(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'event-zurich1')), 'w')
+ # fp.write(zurich_xml)
+ # fp.close()
- #fp = open(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'event-zurich2')), 'w')
- #fp.write(zurich.__str__())
- #fp.close()
+ # fp = open(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'event-zurich2')), 'w')
+ # fp.write(zurich.__str__())
+ # fp.close()
self.assertEqual(london_xml, london.__str__())
self.assertEqual(zurich_xml, zurich.__str__())
-