(monkeypatch)
| 313 | |
| 314 | |
| 315 | async def test_invalid_protocol(monkeypatch): |
| 316 | manager = MagicMock() |
| 317 | |
| 318 | with taddons.context(): |
| 319 | inst = ServerInstance.make(f"regular@127.0.0.1:0", manager) |
| 320 | monkeypatch.setattr(inst.mode, "transport_protocol", "invalid_proto") |
| 321 | with pytest.raises(AssertionError, match=f"invalid_proto"): |
| 322 | await inst.start() |
| 323 | |
| 324 | |
| 325 | async def test_udp_start_stop(caplog_async): |