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"))
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'))
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'))