Skip to content

Commit 275b67d

Browse files
author
Pan
committed
Direct tcpip test
1 parent b182bd1 commit 275b67d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_session.py

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ def test_get_auth_list(self):
1818
expected = sorted(['publickey', 'password', 'keyboard-interactive'])
1919
self.assertListEqual(auth_list, expected)
2020

21+
def test_direct_tcpip(self):
22+
self.assertEqual(self._auth(), 0)
23+
chan = self.session.direct_tcpip(self.host, self.port)
24+
self.assertTrue(chan is not None)
25+
2126
def test_agent(self):
2227
agent = self.session.agent_init()
2328
self.assertTrue(agent.connect() == 0)

0 commit comments

Comments
 (0)