def _args(self): return [ 'env', 'node', ZombieProxyServer.__proxy_path__(), '/tmp/zombie.sock' ]
def test_configurable_socket(self): args = [ 'env', 'node', ZombieProxyServer.__proxy_path__(), '/tmp/zombie-custom.sock' ] with fudge.patched_context( subprocess, 'Popen', (fudge.Fake('Popen'). is_callable(). with_args( args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT ). returns(FakePopen())) ): ZombieProxyServer(socket='/tmp/zombie-custom.sock', wait=False)