Lines Matching defs:mock
12 from unittest import mock
227 with mock.patch('os.path.expanduser', return_value='/home/foo'):
228 with mock.patch('os.path.exists', return_value=True):
232 with mock.patch('os.path.expanduser', return_value='~'):
233 with mock.patch('os.getcwd', return_value='/home/foo/cpython'):
234 with mock.patch('os.mkdir'):
239 with mock.patch('os.path.join', return_value='/path/not/exists'):
250 with mock.patch('os.path.expanduser', return_value='C:\\foo'):
251 with mock.patch('os.path.exists', return_value=True):
255 with mock.patch('os.path.expanduser', return_value='~'):
256 with mock.patch('os.getcwd', return_value='C:\\foo\\cpython'):
257 with mock.patch('os.mkdir'):
262 with mock.patch('os.path.join', return_value='/path/not/exists'):
272 with mock.patch.dict({'__name__': '__foo__'}):
273 with mock.patch('os.path.dirname', return_value=idle_dir):
318 with mock.patch('idlelib.config.IdleUserConfParser.Save') as m:
328 with mock.patch('idlelib.config._warn') as _warn:
371 with mock.patch('idlelib.config._warn'):
777 testcfg[cfgtype][section] # and from mock userCfg.