Home
last modified time | relevance | path

Searched refs:fake_open (Results 1 – 8 of 8) sorted by relevance

/external/autotest/client/bin/
Dpartition_unittest.py93 def fake_open(filename): function
106 open_func=fake_open)
113 parts = partition.get_partition_list(job, open_func=fake_open)
121 open_func=fake_open)
129 open_func=fake_open)
Dutils_unittest.py24 utils._open_file = self.fake_open
28 def fake_open(self, path): member in TestUtils
/external/python/cpython3/Lib/test/
Dtest_fileinput.py873 self.fake_open = InvocationRecorder()
884 gzip.open = self.fake_open
890 self.assertEqual(self.fake_open.invocation_count, 1)
891 self.assertEqual(self.fake_open.last_invocation, (("test.gz", 3), {}))
896 bz2.BZ2File = self.fake_open
902 self.assertEqual(self.fake_open.invocation_count, 1)
903 self.assertEqual(self.fake_open.last_invocation, (("test.bz2", 4), {}))
915 original_open = self.replace_builtin_open(self.fake_open)
921 self.assertEqual(self.fake_open.invocation_count, 1)
922 self.assertEqual(self.fake_open.last_invocation,
[all …]
/external/libese/libese-hw/
Dese_hw_fake.c42 static int fake_open(struct EseInterface *ese, in fake_open() function
156 .open = &fake_open,
/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_test.py566 fake_open = fake_filesystem.FakeFileOpen(self.filesystem)
569 with fake_open(path) as f:
1476 fake_open = fake_filesystem.FakeFileOpen(self.filesystem)
1482 with fake_open('!mount!file', 'w') as dest:
1489 with fake_open('!mount!file', 'w') as dest:
1767 self.fake_open = fake_filesystem.FakeFileOpen(self.filesystem)
1824 errno.EACCES, self.fake_open, real_file_path, 'w')
1826 with self.fake_open(real_file_path, 'w'):
1833 with self.fake_open(real_file_path, 'wb') as f:
1838 with self.fake_open(real_file_path, 'rb') as f:
[all …]
Dfake_filesystem_vs_real_test.py68 fh = self.fake_open(fake_path, 'w')
76 fh = self.fake_open(fake_path, 'wb')
114 self.fake_open = fake_filesystem.FakeFileOpen(self.fake_filesystem)
287 with self.fake_open(path, mode) as fake_fh:
/external/python/pyfakefs/pyfakefs/
Dfake_filesystem_unittest.py367 self.fake_open = None
576 self.fake_open = fake_filesystem.FakeFileOpen(self.fs)
Dfake_filesystem.py4459 fake_open = FakeFileOpen(self.filesystem)
4460 return fake_open(file, mode, buffering, encoding, errors,