def test_equates_invalid_type(self): """ Test that invalid type raises exception """ with self.assertRaises(Exception): CourseVal.equates(1234)
def test_equates_length(self): """ Test that zero-length raises exception """ with self.assertRaises(Exception): CourseVal.equates("")
def test_equates(self): """ Test that valid args does not raise exception """ try: CourseVal.equates("test") except Exception: self.fail()