From 5670d1963f31f0e5b659655545a792db24fcbf10 Mon Sep 17 00:00:00 2001 From: macbook Date: Sun, 9 Sep 2018 23:57:21 -0700 Subject: [PATCH] Added test for tilda in provider ipc path --- tests/core/providers/test_ipc_provider.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/core/providers/test_ipc_provider.py b/tests/core/providers/test_ipc_provider.py index 26fb3c779e..aae89f48db 100644 --- a/tests/core/providers/test_ipc_provider.py +++ b/tests/core/providers/test_ipc_provider.py @@ -39,6 +39,12 @@ def test_ipc_no_path(): assert ipc.isConnected() is False +def test_ipc_tilda_in_path(): + expectedPath = str(pathlib.Path.home()) + '/foo' + assert IPCProvider('~/foo').ipc_path == expectedPath + assert IPCProvider(pathlib.Path('~/foo')).ipc_path == expectedPath + + @pytest.fixture def simple_ipc_server(jsonrpc_ipc_pipe_path): serv = socket.socket(socket.AF_UNIX)