Beispiel #1
0
 def test_eofReceived(self):
     """
     L{twisted.conch.scripts.conch.SSHSession.eofReceived} loses the
     write half of its stdio connection.
     """
     stdio = FakeStdio()
     channel = StdioInteractingSession()
     channel.stdio = stdio
     channel.eofReceived()
     self.assertTrue(stdio.writeConnLost)
Beispiel #2
0
 def test_eofReceived(self):
     """
     L{twisted.conch.scripts.conch.SSHSession.eofReceived} loses the
     write half of its stdio connection.
     """
     stdio = FakeStdio()
     channel = StdioInteractingSession()
     channel.stdio = stdio
     channel.eofReceived()
     self.assertTrue(stdio.writeConnLost)