Esempio n. 1
0
 def test_gehol(self):
     # convert ics to utf8: recode l9..utf8 *.ics
     cal = os.path.join(os.path.dirname(__file__), "gehol", "BA1.ics")
     with open(cal) as ics:
         ics = ics.read()
         ics = string_to_container(ics)[0]
         self.assertTrue(ics)
Esempio n. 2
0
 def test_without_x(self):
     c = string_to_container(cal2)[0]
     c2 = string_to_container(cal2)[0]
     remove_x(c)
     self.assertSequenceEqual(c, c2)
Esempio n. 3
0
 def test_with_x(self):
     c = string_to_container(cal1)[0]
     remove_x(c)
     for line in c:
         self.assertFalse(line.name.startswith('X-'))