MCPcopy Create free account
hub / github.com/C3ting/ARL / test_exec_task

Method test_exec_task

test/ip.py:57–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55
56class TestExecTask(unittest.TestCase):
57 def test_exec_task(self):
58 submit_task(task_data)
59 query = {"task_id": task_data["task_id"]}
60
61 if task_data["options"]["port_scan"]:
62 self.assertTrue(len(list(conn("site").find(query))) >= 1)
63 self.assertTrue(len(list(conn("ip").find(query))) >= 1)
64
65
66if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

submit_taskFunction · 0.70

Tested by

no test coverage detected