MCPcopy
hub / github.com/knownsec/pocsuite3 / test_cmd_run

Method test_cmd_run

tests/test_show_poc_options.py:17–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15 pass
16
17 def test_cmd_run(self):
18 pipeline = os.popen('pocsuite -k ecshop --options')
19
20 # os.popen default encoding may not be utf-8
21 res = pipeline.buffer.read().decode('utf-8')
22
23 self.assertTrue('You can select dict_keys' in res)

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected