mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 22:50:54 +00:00
Add the skeletons of noise transport and conn
This commit is contained in:
15
tests/security/test_noise.py
Normal file
15
tests/security/test_noise.py
Normal 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
|
||||
Reference in New Issue
Block a user