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

Method test_get_bytes

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

Source from the content-addressed store, hash-verified

268 self._check_sample(self._box.get_message(key1))
269
270 def test_get_bytes(self):
271 # Get bytes representations of messages
272 key0 = self._box.add(self._template % 0)
273 key1 = self._box.add(_sample_message)
274 self.assertEqual(self._box.get_bytes(key0),
275 (self._template % 0).encode('ascii'))
276 self.assertEqual(self._box.get_bytes(key1), _bytes_sample_message)
277
278 def test_get_string(self):
279 # Get string representations of messages

Callers

nothing calls this directly

Calls 4

addMethod · 0.45
assertEqualMethod · 0.45
get_bytesMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected