HomeSort by relevance Sort by last modified time
    Searched refs:mock_file (Results 1 - 3 of 3) sorted by null

  /external/chromium-trace/catapult/devil/devil/android/
fastboot_utils_test.py 213 mock_file = io.StringIO(u'require board=%s\n' % _BOARD)
214 with mock.patch('__builtin__.open', return_value=mock_file, create=True):
219 mock_file = io.StringIO(u'abc')
220 with mock.patch('__builtin__.open', return_value=mock_file, create=True):
229 mock_file = io.StringIO(u'require board=%s\n' % _BOARD)
230 with mock.patch('__builtin__.open', return_value=mock_file, create=True):
235 mock_file = io.StringIO(u'require board=%s\n' % _BOARD)
236 with mock.patch('__builtin__.open', return_value=mock_file, create=True):
241 mock_file = io.StringIO(u'require board=WrongBoard')
242 with mock.patch('__builtin__.open', return_value=mock_file, create=True)
    [all...]
  /external/autotest/client/common_lib/cros/
dev_server_unittest.py 483 mock_file = self.mox.CreateMockAnything()
484 open(mox.IgnoreArg(), 'w').AndReturn(mock_file)
485 mock_file.__enter__().AndReturn(mock_file)
486 mock_file.write(mox.IgnoreArg())
487 mock_file.__exit__(None, None, None)
    [all...]
  /external/google-styleguide/cpplint/
cpplint_unittest.py 103 def __init__(self, mock_file):
104 self.mock_file = mock_file
108 return self.mock_file
    [all...]

Completed in 2051 milliseconds