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

Method test_str_large

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

Source from the content-addressed store, hash-verified

107 self.assert_unchanged([value], "['AAAAA']")
108
109 def test_str_large(self):
110 value = "A" * (SafeRepr.maxstring_outer + 10)
111
112 self.assert_shortened(value, "'" + "A" * 43690 + "..." + "A" * 21845 + "'")
113 self.assert_shortened(
114 [value],
115 "['AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA']",
116 )
117
118 def test_str_largest_unchanged(self):
119 value = "A" * (SafeRepr.maxstring_outer)

Callers

nothing calls this directly

Calls 1

assert_shortenedMethod · 0.80

Tested by

no test coverage detected