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

Method test_reflection_limit

tests/test_py_mako.py:164–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 ]
163
164 def test_reflection_limit(self):
165 template = '%s'
166
167 channel = Channel({
168 'url' : 'http://127.0.0.1:15001/limit/mako?tpl=%s&inj=*&limit=20' % template,
169 'injection_tag': '*',
170 'technique': 'R'
171 })
172
173 Mako(channel).detect()
174
175 expected_data = { 'unreliable_render' : self.expected_data['render'], 'unreliable' : 'Mako' }
176
177 self.assertEqual(channel.data, expected_data)

Callers

nothing calls this directly

Calls 3

ChannelClass · 0.90
MakoClass · 0.90
detectMethod · 0.45

Tested by

no test coverage detected