MCPcopy Create free account
hub / github.com/pallets/werkzeug / test_debug_dump

Method test_debug_dump

tests/test_debug.py:194–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

192 assert re.search('<th>y.*<span class="number">23</span>', out, flags=re.DOTALL)
193
194 def test_debug_dump(self):
195 old = sys.stdout
196 sys.stdout = HTMLStringO()
197 try:
198 dump([1, 2, 3])
199 x = sys.stdout.reset()
200 dump()
201 y = sys.stdout.reset()
202 finally:
203 sys.stdout = old
204
205 assert "Details for list object at" in x
206 assert '<span class="number">1</span>' in x
207 assert "Local variables in frame" in y
208 assert "<th>x" in y
209 assert "<th>old" in y
210
211 def test_debug_help(self):
212 old = sys.stdout

Callers

nothing calls this directly

Calls 3

HTMLStringOClass · 0.90
dumpFunction · 0.90
resetMethod · 0.80

Tested by

no test coverage detected