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

Method test_put_reflection

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

Source from the content-addressed store, hash-verified

77 self.assertEqual(channel.data, self.expected_data)
78
79 def test_put_reflection(self):
80
81 template = '%s'
82
83 channel = Channel({
84 'url' : 'http://127.0.0.1:15001/put/mako',
85 'data' : 'inj=*&othervar=1',
86 'request' : 'PUT',
87 'force_level': [ 0, 0 ],
88 'injection_tag': '*',
89 'technique': 'R'
90 })
91 detect_template_injection(channel, [ Mako ])
92 del channel.data['os']
93 self.assertEqual(channel.data, self.expected_data)
94
95 def test_custom_injection_tag(self):
96

Callers

nothing calls this directly

Calls 2

ChannelClass · 0.90

Tested by

no test coverage detected