tribler.test_unit.core.socks5.test_client
Classes
A Mocked Socks5Client that does not pull any event loop constructs. |
|
Tests for the Socks5Client class. |
Module Contents
- class tribler.test_unit.core.socks5.test_client.MockSocks5Client
Bases:
tribler.core.socks5.client.Socks5ClientA Mocked Socks5Client that does not pull any event loop constructs.
The following three methods are tested in test_server.
- class tribler.test_unit.core.socks5.test_client.TestSocks5Client
Bases:
ipv8.test.base.TestBaseTests for the Socks5Client class.
- test_data_received_connected() None
Test if data is fed to the registered callback when a connection is open.
- async test_data_received_queue_unconnected() None
Test if data is put in a single-item queue when no connection is open.
- async test_disallow_associate_udp_on_tcp() None
Test if a client cannot associate through UDP using a pre-established TCP connection.
- async test_disallow_connect_tcp_on_udp() None
Test if a client cannot connect through TCP using a pre-established UDP association.