Exemplo n.º 1
0
 def test_none_or_empty_type(self):
     ts = get_snmp_privacy_algorithm_from_string(None)
     self.assertIsNone(ts)
     ts = get_snmp_privacy_algorithm_from_string('')
     self.assertIsNone(ts)
Exemplo n.º 2
0
 def test_des(self):
     ts = get_snmp_privacy_algorithm_from_string('des')
     self.assertEqual(ts, SnmpPrivacyAlgorithm.DES)
Exemplo n.º 3
0
 def test_invalid_status(self):
     with self.assertRaises(InvalidArgument):
         get_snmp_privacy_algorithm_from_string('foo')