def test_creator(self): c0 = Calendar() c1 = Calendar() c0.creator = u'42' with self.assertRaises(ValueError): c1.creator = 42 self.assertEqual(c0.creator, u'42')
def test_creator(self): c0 = Calendar() c1 = Calendar() c0.creator = u'42' # TextProperties are cast to a string type c1.creator = 42 self.assertEqual(c0.creator, u'42') self.assertEqual(c1.creator, u'42')
def test_existing_creator(self): c = Calendar(cal1) self.assertEqual(c.creator, u'-//Apple Inc.//Mac OS X 10.9//EN') c.creator = u"apple_is_a_fruit" self.assertEqual(c.creator, u"apple_is_a_fruit")