Skip to content

Commit

Permalink
Direct tcpip test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Dec 21, 2017
1 parent b182bd1 commit 275b67d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def test_get_auth_list(self):
expected = sorted(['publickey', 'password', 'keyboard-interactive'])
self.assertListEqual(auth_list, expected)

def test_direct_tcpip(self):
self.assertEqual(self._auth(), 0)
chan = self.session.direct_tcpip(self.host, self.port)
self.assertTrue(chan is not None)

def test_agent(self):
agent = self.session.agent_init()
self.assertTrue(agent.connect() == 0)
Expand Down

0 comments on commit 275b67d

Please sign in to comment.