def test_not_duration_and_end(self): c = Calendar(calendar_with_duration_and_end) with self.assertRaises(ValueError): c.validate()
def test_no_prodid(self): c = Calendar(calendar_without_prodid) with self.assertRaises(ValueError): c.validate()