def test_Course4(self): co = Course("CS-337", "004", ["M", "W", "F"], "11:00", "11:50", ["001", "002", "003"]) with self.assertRaises(ValueError) as ctx: co.section = "abs" self.assertEqual("Section must be a three digit number", str(ctx.exception))
def test_Course2(self): co = Course("CS-337", "004", ["M", "W", "F"], "11:00", "11:50", ["001", "002", "003"]) co.section = "001" self.assertEqual(co.section, "001")