Пример #1
0
 def test_Course18(self):
     co = Course("CS-337", "004", ["M", "W"], "11:00", "11:50",
                 ["001", "002", "003"])
     with self.assertRaises(ValueError) as ctx:
         co.lab = "abs"
     self.assertEqual("Lab must be a three digit number",
                      str(ctx.exception))
Пример #2
0
 def test_Course16(self):
     co = Course("CS-337", "004", ["M", "W"], "11:00", "11:50",
                 ["001", "002", "003"])
     co.lab = "008"
     self.assertEqual(co.lab, "008")