@patch('salt.modules.ilo.__execute_cmd',
           MagicMock(return_value={'Change password': {}}))
    def test_change_password(self):
        self.assertDictEqual(ilo.change_password('Salt', 'saltpasswd'),
                             {'Change password': {}})

    # 'network' function tests: 1
Test if it reset a users password
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/ilo_test.py/IloTestCase.test_change_password