MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / test_bytes_large

Method test_bytes_large

tests_python/test_safe_repr.py:166–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

164
165 @pytest.mark.skipif(sys.version_info < (3, 0), reason="Py3 specific test")
166 def test_bytes_large(self):
167 value = b"A" * (SafeRepr.maxstring_outer + 10)
168
169 self.assert_shortened(value, "b'" + "A" * 43690 + "..." + "A" * 21845 + "'")
170 self.assert_shortened(
171 [value],
172 "[b'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA']",
173 )
174
175 # @pytest.mark.skip(reason='not written') # TODO: finish!
176 # def test_bytearray_small(self):

Callers

nothing calls this directly

Calls 1

assert_shortenedMethod · 0.80

Tested by

no test coverage detected