Esempio n. 1
0
 def test_distance_education_invalid_type(self):
     """ Test that invalid type raises exception """
     with self.assertRaises(Exception):
         CourseVal.distance_education(1234)
Esempio n. 2
0
 def test_distance_education(self):
     """ Test that valid args does not raise exception """
     try:
         CourseVal.distance_education(DistanceEducation.NO)
     except Exception:
         self.fail()