Example #1
0
 def test_other_invalid_type(self):
     """ Test that invalid type raises exception """
     with self.assertRaises(Exception):
         CourseVal.other(1234)
Example #2
0
 def test_other_length(self):
     """ Test that zero-length raises exception """
     with self.assertRaises(Exception):
         CourseVal.other("")
Example #3
0
 def test_other(self):
     """ Test that valid args does not raise exception """
     try:
         CourseVal.other("test")
     except Exception:
         self.fail()