Ejemplo n.º 1
0
 def test_set_snmp(self):
     """
     Test to configure SNMP community string
     """
     mock = MagicMock(return_value=True)
     with patch.object(drac, "__execute_cmd", mock):
         self.assertTrue(drac.set_snmp("username"))
Ejemplo n.º 2
0
 def test_set_snmp(self):
     '''
     Test to configure SNMP community string
     '''
     mock = MagicMock(return_value=True)
     with patch.object(drac, '__execute_cmd', mock):
         self.assertTrue(drac.set_snmp('username'))
Ejemplo n.º 3
0
 def test_set_snmp(self):
     '''
     Test to configure SNMP community string
     '''
     mock = MagicMock(return_value=True)
     with patch.object(drac, '__execute_cmd', mock):
         self.assertTrue(drac.set_snmp('username'))