MCPcopy
hub / github.com/pallets/werkzeug / Example

Class Example

tests/test_local.py:235–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233
234def test_proxy_string_representations():
235 class Example:
236 def __repr__(self):
237 return "a"
238
239 def __bytes__(self):
240 return b"b"
241
242 def __index__(self):
243 return 23
244
245 _, p = _make_proxy(Example())
246 assert str(p) == "a"

Callers 9

test_proxy_numericFunction · 0.85
test_proxy_iopFunction · 0.85
test_proxy_matmulFunction · 0.85
test_proxy_length_hintFunction · 0.85
test_proxy_attributesFunction · 0.85
test_proxy_aiterFunction · 0.85

Calls

no outgoing calls

Tested by 9

test_proxy_numericFunction · 0.68
test_proxy_iopFunction · 0.68
test_proxy_matmulFunction · 0.68
test_proxy_length_hintFunction · 0.68
test_proxy_attributesFunction · 0.68
test_proxy_aiterFunction · 0.68