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

Method test_reflection_quotes

tests/test_node_pug.py:67–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 ]
66
67 def test_reflection_quotes(self):
68
69 obj, data = self._get_detection_obj_data(self.url % '')
70
71 if obj.get('execute'):
72 result = obj.execute("""echo 1"2"'3'\\"\\'""")
73 self.assertEqual(result, """123"'""")
74
75 if not self.url_blind:
76 return
77
78 obj, data = self._get_detection_obj_data(self.url_blind % '')
79 if obj.get('execute_blind'):
80 self.assertTrue(obj.execute_blind("""echo 1"2"'3'\\"\\'"""))

Callers

nothing calls this directly

Calls 4

getMethod · 0.80
executeMethod · 0.80
execute_blindMethod · 0.80

Tested by

no test coverage detected