示例#1
0
 def test_list_users(self):
     '''
     Test if it list all users
     '''
     with patch('salt.modules.ilo.__execute_cmd',
                MagicMock(return_value={'All users': {}})):
         self.assertDictEqual(ilo.list_users(), {'All users': {}})
示例#2
0
 def test_list_users(self):
     """
     Test if it list all users
     """
     with patch("salt.modules.ilo.__execute_cmd",
                MagicMock(return_value={"All users": {}})):
         self.assertDictEqual(ilo.list_users(), {"All users": {}})
示例#3
0
文件: test_ilo.py 项目: cldeluna/salt
 def test_list_users(self):
     '''
     Test if it list all users
     '''
     self.assertDictEqual(ilo.list_users(), {'All users': {}})
示例#4
0
文件: ilo_test.py 项目: DaveQB/salt
 def test_list_users(self):
     '''
     Test if it list all users
     '''
     self.assertDictEqual(ilo.list_users(), {'All users': {}})