Home
last modified time | relevance | path

Searched refs:byte_contents (Results 1 – 5 of 5) sorted by relevance

/external/python/pyfakefs/pyfakefs/
Dhelpers.py332 byte_contents = self._bytestream.read(size)
334 read_contents = byte_contents
338 self.decoded_string(byte_contents))
343 end_pos = self._linelen_for_universal_newlines(byte_contents)
347 end_pos = self._linelen_for_universal_newlines(byte_contents)
349 if byte_contents[end_pos - 1] == ord(b'\r'):
351 elif end_pos > 1 and byte_contents[end_pos - 2] == ord(b'\r'):
361 end_pos = byte_contents.find(newline.encode()) + nl_len
366 end_pos = len(byte_contents)
369 return (byte_contents[:end_pos] if self.binary
[all …]
Dfake_filesystem.py285 def byte_contents(self): member in FakeFile
292 if isinstance(self.byte_contents, bytes):
293 return self.byte_contents.decode(
296 return self.byte_contents
544 def byte_contents(self): member in FakeNullFile
578 def byte_contents(self): member in FakeFileFromRealFile
619 return self.byte_contents
627 self.byte_contents.items(), key=lambda entry: entry[1].st_ino)]
813 return self.byte_contents
4490 contents = file_object.byte_contents
[all …]
/external/python/pyfakefs/docs/
Dmodules.rst22 :members: byte_contents, contents, set_contents,
/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_unittest_test.py508 self.assertEqual(fake_file.byte_contents, self.real_byte_contents)
544 self.assertEqual(self.real_byte_contents, fake_file.byte_contents)
Dfake_filesystem_test.py1821 self.assertEqual(fake_file.byte_contents, real_contents)
1832 self.assertEqual(fake_file.byte_contents, real_contents)