MCPcopy
hub / github.com/epinna/tplmap / test_header_reflection

Method test_header_reflection

tests/test_channel.py:64–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 self.assertEqual(channel.data, self.expected_data)
63
64 def test_header_reflection(self):
65
66 template = '%s'
67
68 channel = Channel({
69 'url' : 'http://127.0.0.1:15001/header/mako',
70 'force_level': [ 0, 0 ],
71 'headers' : [ 'User-Agent: *' ],
72 'injection_tag': '*',
73 'technique': 'R'
74 })
75 detect_template_injection(channel, [ Mako ])
76 del channel.data['os']
77 self.assertEqual(channel.data, self.expected_data)
78
79 def test_put_reflection(self):
80

Callers

nothing calls this directly

Calls 2

ChannelClass · 0.90

Tested by

no test coverage detected