def test_configure_snmp(self): ''' Test if it configure SNMP ''' with patch('salt.modules.ilo.__execute_cmd', MagicMock(return_value={'Configure SNMP': {}})): self.assertDictEqual(ilo.configure_snmp('Salt'), {'Configure SNMP': {}})
def test_configure_snmp(self): """ Test if it configure SNMP """ with patch( "salt.modules.ilo.__execute_cmd", MagicMock(return_value={"Configure SNMP": {}}), ): self.assertDictEqual(ilo.configure_snmp("Salt"), {"Configure SNMP": {}})
def test_configure_snmp(self): ''' Test if it configure SNMP ''' self.assertDictEqual(ilo.configure_snmp('Salt'), {'Configure SNMP': {}})