Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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')
Ejemplo n.º 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'
Ejemplo n.º 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')
Ejemplo n.º 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')