(self)
| 68 | |
| 69 | class TestServer: |
| 70 | def test_basic(self): |
| 71 | s = Server(address=("address", 22)) |
| 72 | assert repr(s) |
| 73 | assert str(s) |
| 74 | s.timestamp_tls_setup = 1607780791 |
| 75 | assert str(s) |
| 76 | s.alpn = b"foo" |
| 77 | s.sockname = ("127.0.0.1", 54321) |
| 78 | assert str(s) == "Server(address:22, state=closed, alpn=foo, src_port=54321)" |
| 79 | |
| 80 | def test_state(self): |
| 81 | c = tserver_conn() |