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