MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_remove

Function test_remove

test/mitmproxy/addons/test_view.py:372–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370
371
372def test_remove():
373 v = view.View()
374 with taddons.context():
375 f = [tflow.tflow(), tflow.tflow()]
376 v.add(f)
377 assert len(v) == 2
378 v.remove(f)
379 assert len(v) == 0
380
381
382def test_setgetval():

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
removeMethod · 0.95
contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…