def test_corequisites_invalid_type(self): """ Test that invalid type raises exception """ with self.assertRaises(Exception): CourseVal.corequisites(1234)
def test_corequisites_length(self): """ Test that zero-length raises exception """ with self.assertRaises(Exception): CourseVal.corequisites("")
def test_corequisites(self): """ Test that valid args does not raise exception """ try: CourseVal.corequisites("test") except Exception: self.fail()