Searched refs:byte_contents (Results 1 – 5 of 5) sorted by relevance
332 byte_contents = self._bytestream.read(size)334 read_contents = byte_contents338 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_len366 end_pos = len(byte_contents)369 return (byte_contents[:end_pos] if self.binary[all …]
285 def byte_contents(self): member in FakeFile292 if isinstance(self.byte_contents, bytes):293 return self.byte_contents.decode(296 return self.byte_contents544 def byte_contents(self): member in FakeNullFile578 def byte_contents(self): member in FakeFileFromRealFile619 return self.byte_contents627 self.byte_contents.items(), key=lambda entry: entry[1].st_ino)]813 return self.byte_contents4490 contents = file_object.byte_contents[all …]
22 :members: byte_contents, contents, set_contents,
508 self.assertEqual(fake_file.byte_contents, self.real_byte_contents)544 self.assertEqual(self.real_byte_contents, fake_file.byte_contents)
1821 self.assertEqual(fake_file.byte_contents, real_contents)1832 self.assertEqual(fake_file.byte_contents, real_contents)