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

Method test_basic_repr

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

Source from the content-addressed store, hash-verified

18
19class TestDebugRepr:
20 def test_basic_repr(self):
21 assert debug_repr([]) == "[]"
22 assert debug_repr([1, 2]) == (
23 '[<span class="number">1</span>, <span class="number">2</span>]'
24 )
25 assert debug_repr([1, "test"]) == (
26 '[<span class="number">1</span>,'
27 ' <span class="string">&#39;test&#39;</span>]'
28 )
29 assert debug_repr([None]) == '[<span class="object">None</span>]'
30
31 def test_string_repr(self):
32 assert debug_repr("") == '<span class="string">&#39;&#39;</span>'

Callers

nothing calls this directly

Calls 1

debug_reprFunction · 0.90

Tested by

no test coverage detected