def test_Course21(self): co = Course("CS-337", "004", ["M", "W"], "11:00", "11:50", ["001", "002", "003"]) with self.assertRaises(ValueError) as ctx: co.lab_sections = ["abs", "001", "r34"] self.assertEqual("Lab sections must be a three digit number", str(ctx.exception))
def test_Course19(self): co = Course("CS-337", "004", ["M", "W"], "11:00", "11:50", ["001", "002", "003"]) co.lab_sections = ["008", "009"] self.assertEqual(co.lab_sections, ["008", "009"])