From 737195f4617c54be7ec2278d1ed063042b7315a6 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Sat, 24 Aug 2019 23:15:31 +0200 Subject: [PATCH] Simplify testing connection w/ other simplifications --- tests/security/test_secio.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/security/test_secio.py b/tests/security/test_secio.py index 27a00c5e..da7e1f16 100644 --- a/tests/security/test_secio.py +++ b/tests/security/test_secio.py @@ -19,15 +19,6 @@ class InMemoryConnection(IRawConnection): self.current_position = 0 self.closed = False - self.stream_counter = 0 - - @property - def writer(self): - return self - - @property - def reader(self): - return self async def write(self, data: bytes) -> None: if self.closed: @@ -35,12 +26,6 @@ class InMemoryConnection(IRawConnection): await self.send_queue.put(data) - async def drain(self): - return - - async def readexactly(self, n): - return await self.read(n) - async def read(self, n: int = -1) -> bytes: """ NOTE: have to buffer the current message and juggle packets @@ -67,10 +52,6 @@ class InMemoryConnection(IRawConnection): def close(self) -> None: self.closed = True - def next_stream_id(self) -> int: - self.stream_counter += 1 - return self.stream_counter - async def create_pipe(local_conn, remote_conn): try: