mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Create a centralized Connection class, replaces TcpTransport (#112)
This commit is contained in:
@@ -5,7 +5,7 @@ import unittest
|
||||
|
||||
import telethon.network.authenticator as authenticator
|
||||
from telethon.extensions import TcpClient
|
||||
from telethon.network import TcpTransport
|
||||
from telethon.network import Connection
|
||||
|
||||
|
||||
def run_server_echo_thread(port):
|
||||
@@ -38,6 +38,6 @@ class NetworkTests(unittest.TestCase):
|
||||
|
||||
@staticmethod
|
||||
def test_authenticator():
|
||||
transport = TcpTransport('149.154.167.91', 443)
|
||||
transport = Connection('149.154.167.91', 443)
|
||||
authenticator.do_authentication(transport)
|
||||
transport.close()
|
||||
|
Reference in New Issue
Block a user