Example #1
0
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
Example #2
0
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
Example #3
0
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')
Example #4
0
def test_Communicator_instantiation():
    from vimpdb.proxy import Communicator

    communicator = Communicator('script', 'server_name')

    assert communicator.script == 'script'
    assert communicator.server_name == 'server_name'
Example #5
0
def test_Communicator_send_ok():
    from vimpdb.proxy import Communicator
    script = build_script("communicator.py")

    communicator = Communicator(script, 'server_name')
    communicator._send('command')
Example #6
0
def test_Communicator_send_ok():
    from vimpdb.proxy import Communicator
    script = build_script("communicator.py")

    communicator = Communicator(script, 'server_name')
    communicator._send('command')