MCPcopy Index your code
hub / github.com/python/cpython / test_get_string

Method test_get_string

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

Source from the content-addressed store, hash-verified

277 self.assertEqual(self._box.get_bytes(key1), _bytes_sample_message)
278
279 def test_get_string(self):
280 # Get string representations of messages
281 key0 = self._box.add(self._template % 0)
282 key1 = self._box.add(_sample_message)
283 self.assertEqual(self._box.get_string(key0), self._template % 0)
284 self.assertEqual(self._box.get_string(key1).split('\n'),
285 _sample_message.split('\n'))
286
287 def test_get_file(self):
288 # 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