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

Method test_unicode_large

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

Source from the content-addressed store, hash-verified

150
151 @pytest.mark.skipif(sys.version_info > (3, 0), reason="Py2 specific test")
152 def test_unicode_large(self):
153 value = "A" * (SafeRepr.maxstring_outer + 10)
154
155 self.assert_shortened(value, "u'" + "A" * 43690 + "..." + "A" * 21845 + "'")
156 self.assert_shortened([value], "[u'AAAAAAAAAAAAAAAAAAAA...AAAAAAAAAA']")
157
158 @pytest.mark.skipif(sys.version_info < (3, 0), reason="Py3 specific test")
159 def test_bytes_small(self):

Callers

nothing calls this directly

Calls 1

assert_shortenedMethod · 0.80

Tested by

no test coverage detected