Searched refs:fake_open (Results 1 – 8 of 8) sorted by relevance
/external/autotest/client/bin/ |
D | partition_unittest.py | 93 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)
|
D | utils_unittest.py | 24 utils._open_file = self.fake_open 28 def fake_open(self, path): member in TestUtils
|
/external/python/cpython3/Lib/test/ |
D | test_fileinput.py | 873 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/ |
D | ese_hw_fake.c | 42 static int fake_open(struct EseInterface *ese, in fake_open() function 156 .open = &fake_open,
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_filesystem_test.py | 566 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 …]
|
D | fake_filesystem_vs_real_test.py | 68 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/ |
D | fake_filesystem_unittest.py | 367 self.fake_open = None 576 self.fake_open = fake_filesystem.FakeFileOpen(self.fs)
|
D | fake_filesystem.py | 4459 fake_open = FakeFileOpen(self.filesystem) 4460 return fake_open(file, mode, buffering, encoding, errors,
|