def setUp(self): self.ssh = SSHProtocol() self.ssh.transport = TransportMock() self.ssh.terminal = TerminalBuffer() self.ssh.userName = "******" self.ssh.name = config.sshName self.ssh.port = config.sshPort FilesystemParser.honeytoken_directory = config.tokendir self.ssh._parser = FilesystemParser(config.resources + "/test_unix.xml") self.ssh.userIP = "TestIP" self.ssh.l = TestLogging
def setUp(self): self.transport = TerminalBuffer() self.protocol = self.protocolClass() self.protocol.makeConnection(self.transport)