def test_creation(self): w = bcw.WebSocketClientConnectionWrapper("socket") assert w._socket == "socket" assert isinstance(w.write_lock, locks.Lock)
def test_creation_raises_with_None(self): with pytest.raises(ValueError): bcw.WebSocketClientConnectionWrapper(None)