def test_delete_ssh_key(self): ''' Test if it delete a users SSH key from the ILO ''' with patch('salt.modules.ilo.__execute_cmd', MagicMock(return_value={'Delete user SSH key': {}})): self.assertDictEqual(ilo.delete_ssh_key('Salt'), {'Delete user SSH key': {}})
def test_delete_ssh_key(self): """ Test if it delete a users SSH key from the ILO """ with patch( "salt.modules.ilo.__execute_cmd", MagicMock(return_value={"Delete user SSH key": {}}), ): self.assertDictEqual(ilo.delete_ssh_key("Salt"), {"Delete user SSH key": {}})
def test_delete_ssh_key(self): ''' Test if it delete a users SSH key from the ILO ''' self.assertDictEqual(ilo.delete_ssh_key('Salt'), {'Delete user SSH key': {}})