Пример #1
0
 def test_year_parity_restrictions(self):
     """ Test that valid args does not raise exception """
     try:
         CourseVal.year_parity_restrictions(
             YearParityRestrictions.EVEN_YEARS)
     except Exception:
         self.fail()
Пример #2
0
 def test_year_parity_restrictions_invalid_type(self):
     """ Test that invalid type raises exception """
     with self.assertRaises(Exception):
         CourseVal.year_parity_restrictions(1234)