def test_Communicator_remote_expr_ok(): from vimpdb.proxy import Communicator script = build_script("communicator.py") communicator = Communicator(script, 'server_name') result = communicator._remote_expr('expr') assert 'expr' in result assert 'server_name' in result
def test_Communicator_send_return_code(): from vimpdb.proxy import Communicator from vimpdb.errors import RemoteUnavailable script = build_script("returncode.py") communicator = Communicator(script, 'server_name') py.test.raises(RemoteUnavailable, communicator._send, 'command')
def test_Communicator_instantiation(): from vimpdb.proxy import Communicator communicator = Communicator('script', 'server_name') assert communicator.script == 'script' assert communicator.server_name == 'server_name'
def test_Communicator_send_ok(): from vimpdb.proxy import Communicator script = build_script("communicator.py") communicator = Communicator(script, 'server_name') communicator._send('command')