Пример #1
0
 def test_get_user(self):
     '''
     Test if it returns local user information, excluding the password
     '''
     with patch('salt.modules.ilo.__execute_cmd',
                MagicMock(return_value={'User Info': {}})):
         self.assertDictEqual(ilo.get_user('Salt'), {'User Info': {}})
Пример #2
0
 def test_get_user(self):
     """
     Test if it returns local user information, excluding the password
     """
     with patch("salt.modules.ilo.__execute_cmd",
                MagicMock(return_value={"User Info": {}})):
         self.assertDictEqual(ilo.get_user("Salt"), {"User Info": {}})
Пример #3
0
 def test_get_user(self):
     '''
     Test if it returns local user information, excluding the password
     '''
     self.assertDictEqual(ilo.get_user('Salt'), {'User Info': {}})
Пример #4
0
 def test_get_user(self):
     '''
     Test if it returns local user information, excluding the password
     '''
     self.assertDictEqual(ilo.get_user('Salt'), {'User Info': {}})