def test_throttled_socket_recv(self): fake = FakeSocket() throttled = ThrottledSocket(100, 100, fake) assert throttled.recv() == fake.recv()