Lines Matching refs:patch
82 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
94 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
104 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
108 with mock.patch('os.open') as mock_os_open:
113 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
114 @mock.patch('oauth2client.contrib.locked_file.logger')
115 @mock.patch('time.time')
121 with mock.patch('os.open') as mock_os_open:
128 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
129 @mock.patch('oauth2client.contrib.locked_file.logger')
130 @mock.patch('time.time')
139 with mock.patch('os.open') as mock_os_open:
147 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
148 @mock.patch('time.time')
149 @mock.patch('time.sleep')
156 with mock.patch('os.open') as mock_os_open:
165 @mock.patch('oauth2client.contrib.locked_file.os')
182 @mock.patch('oauth2client.contrib.locked_file._PosixOpener')
189 @mock.patch('oauth2client.contrib.locked_file._PosixOpener')
195 @mock.patch.dict('sys.modules', {
203 @mock.patch.dict('sys.modules', {
212 @mock.patch('oauth2client.contrib.locked_file._PosixOpener')
213 @mock.patch.dict('sys.modules', {