MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_add_binary_file

Method test_add_binary_file

Lib/test/test_mailbox.py:155–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 "Да, они летят.\n")
154
155 def test_add_binary_file(self):
156 with tempfile.TemporaryFile('wb+') as f:
157 f.write(_bytes_sample_message)
158 f.seek(0)
159 key = self._box.add(f)
160 self.assertEqual(self._box.get_bytes(key).split(b'\n'),
161 _bytes_sample_message.split(b'\n'))
162
163 def test_add_binary_nonascii_file(self):
164 with tempfile.TemporaryFile('wb+') as f:

Callers

nothing calls this directly

Calls 6

writeMethod · 0.45
seekMethod · 0.45
addMethod · 0.45
assertEqualMethod · 0.45
splitMethod · 0.45
get_bytesMethod · 0.45

Tested by

no test coverage detected