Ejemplo n.º 1
0
 def test_change_password(self):
     '''
     Test if it reset a users password
     '''
     with patch('salt.modules.ilo.__execute_cmd',
                MagicMock(return_value={'Change password': {}})):
         self.assertDictEqual(ilo.change_password('Salt', 'saltpasswd'),
                              {'Change password': {}})
Ejemplo n.º 2
0
 def test_change_password(self):
     """
     Test if it reset a users password
     """
     with patch(
             "salt.modules.ilo.__execute_cmd",
             MagicMock(return_value={"Change password": {}}),
     ):
         self.assertDictEqual(ilo.change_password("Salt", "saltpasswd"),
                              {"Change password": {}})
Ejemplo n.º 3
0
 def test_change_password(self):
     '''
     Test if it reset a users password
     '''
     self.assertDictEqual(ilo.change_password('Salt', 'saltpasswd'),
                          {'Change password': {}})
Ejemplo n.º 4
0
 def test_change_password(self):
     '''
     Test if it reset a users password
     '''
     self.assertDictEqual(ilo.change_password('Salt', 'saltpasswd'),
                          {'Change password': {}})