(self)
| 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 |
nothing calls this directly
no test coverage detected