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