コード例 #1
0
 def test_description_invalid_type(self):
     """ Test that invalid type raises exception """
     with self.assertRaises(Exception):
         CourseVal.description(1234)
コード例 #2
0
 def test_description(self):
     """ Test that valid args does not raise exception """
     try:
         CourseVal.description("test")
     except Exception:
         self.fail()