Пример #1
0
 def test_corequisites_invalid_type(self):
     """ Test that invalid type raises exception """
     with self.assertRaises(Exception):
         CourseVal.corequisites(1234)
Пример #2
0
 def test_corequisites_length(self):
     """ Test that zero-length raises exception """
     with self.assertRaises(Exception):
         CourseVal.corequisites("")
Пример #3
0
 def test_corequisites(self):
     """ Test that valid args does not raise exception """
     try:
         CourseVal.corequisites("test")
     except Exception:
         self.fail()