Add the skeletons of noise transport and conn

This commit is contained in:
mhchia
2020-02-07 17:47:50 +08:00
parent e63584c387
commit 897e66b7e1
5 changed files with 139 additions and 5 deletions

View File

@ -0,0 +1,15 @@
import pytest
from libp2p.tools.factories import noise_conn_factory
@pytest.mark.trio
async def test_noise_transport(nursery):
async with noise_conn_factory(nursery):
pass
@pytest.mark.trio
async def test_noise_connection():
async with noise_conn_factory() as conns:
local_conn, remote_conn = conns