def test_alarm(self):
     ct = get_severity_level_from_string('Alarm')
     self.assertEqual(ct, SeverityLevel.ALARM)
 def test_log(self):
     ct = get_severity_level_from_string('Log')
     self.assertEqual(ct, SeverityLevel.LOG)
 def test_medium(self):
     ct = get_severity_level_from_string('Medium')
     self.assertEqual(ct, SeverityLevel.MEDIUM)
 def test_high(self):
     ct = get_severity_level_from_string('High')
     self.assertEqual(ct, SeverityLevel.HIGH)
 def test_none_or_empty(self):
     ct = get_severity_level_from_string(None)
     self.assertIsNone(ct)
     ct = get_severity_level_from_string('')
     self.assertIsNone(ct)
 def test_invalid(self):
     with self.assertRaises(InvalidArgument):
         get_severity_level_from_string('foo')