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

Method test_get_string

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

Source from the content-addressed store, hash-verified

276 self.assertEqual(self._box.get_bytes(key1), _bytes_sample_message)
277
278 def test_get_string(self):
279 # Get string representations of messages
280 key0 = self._box.add(self._template % 0)
281 key1 = self._box.add(_sample_message)
282 self.assertEqual(self._box.get_string(key0), self._template % 0)
283 self.assertEqual(self._box.get_string(key1).split('\n'),
284 _sample_message.split('\n'))
285
286 def test_get_file(self):
287 # Get file representations of messages

Callers

nothing calls this directly

Calls 4

addMethod · 0.45
assertEqualMethod · 0.45
get_stringMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected