kopia lustrzana https://github.com/collective/icalendar
Merge branch 'bugfix-333' into bugfix-335
commit
19883374ab
|
|
@ -19,6 +19,9 @@ except:
|
||||||
class TestTimezoned(unittest.TestCase):
|
class TestTimezoned(unittest.TestCase):
|
||||||
|
|
||||||
def test_create_from_ical_zoneinfo(self):
|
def test_create_from_ical_zoneinfo(self):
|
||||||
|
if zoneinfo is None:
|
||||||
|
self.skipTest("zoneinfo library not found for this python version")
|
||||||
|
|
||||||
directory = os.path.dirname(__file__)
|
directory = os.path.dirname(__file__)
|
||||||
with open(os.path.join(directory, 'timezoned.ics'), 'rb') as fp:
|
with open(os.path.join(directory, 'timezoned.ics'), 'rb') as fp:
|
||||||
data = fp.read()
|
data = fp.read()
|
||||||
|
|
@ -172,6 +175,9 @@ class TestTimezoned(unittest.TestCase):
|
||||||
self.assertTrue("CREATED;VALUE=DATE-TIME:20101010T081010Z" in test_out)
|
self.assertTrue("CREATED;VALUE=DATE-TIME:20101010T081010Z" in test_out)
|
||||||
|
|
||||||
def test_create_to_ical_zoneinfo(self):
|
def test_create_to_ical_zoneinfo(self):
|
||||||
|
if zoneinfo is None:
|
||||||
|
self.skipTest("zoneinfo library not found for this python version")
|
||||||
|
|
||||||
cal = icalendar.Calendar()
|
cal = icalendar.Calendar()
|
||||||
|
|
||||||
cal.add('prodid', "-//Plone.org//NONSGML plone.app.event//EN")
|
cal.add('prodid', "-//Plone.org//NONSGML plone.app.event//EN")
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue