MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_update

Function test_update

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

Source from the content-addressed store, hash-verified

445
446
447def test_update():
448 v = view.View()
449 flt = flowfilter.parse("~m get")
450 v.set_filter(flt)
451
452 f = tft(method="get")
453 v.requestheaders(f)
454 assert f in v
455
456 f.request.method = "put"
457 v.update([f])
458 assert f not in v
459
460 f.request.method = "get"
461 v.update([f])
462 assert f in v
463
464 v.update([f])
465 assert f in v
466
467
468class Record:

Callers

nothing calls this directly

Calls 5

set_filterMethod · 0.95
requestheadersMethod · 0.95
updateMethod · 0.95
tftFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…