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

Method test_url_reflection

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

Source from the content-addressed store, hash-verified

48 self.assertEqual(channel.data, self.expected_data)
49
50 def test_url_reflection(self):
51
52 channel = Channel({
53 'url' : 'http://127.0.0.1:15001/url/mako/AA*AA',
54 'force_level': [ 0, 0 ],
55 'injection_tag': '*',
56 'technique': 'R'
57
58 })
59
60 detect_template_injection(channel, [ Mako ])
61 del channel.data['os']
62 self.assertEqual(channel.data, self.expected_data)
63
64 def test_header_reflection(self):
65

Callers

nothing calls this directly

Calls 2

ChannelClass · 0.90

Tested by

no test coverage detected