| 60 | self.jobs.list = Mock(return_value={}) |
| 61 | |
| 62 | class MockMsfConsole: |
| 63 | def __init__(self, cid='test-console-id'): |
| 64 | self.cid = cid |
| 65 | self._command_history = [] |
| 66 | |
| 67 | def read(self): |
| 68 | return {'data': 'msf6 > ', 'prompt': '\x01\x02msf6\x01\x02 \x01\x02> \x01\x02', 'busy': False} |
| 69 | |
| 70 | def write(self, command): |
| 71 | self._command_history.append(command.strip()) |
| 72 | return True |
| 73 | |
| 74 | class MockMsfModule: |
| 75 | def __init__(self, fullname): |
nothing calls this directly
no outgoing calls
no test coverage detected