Ejemplo n.º 1
0
def test_detector_build_command():
    from vimpdb.config import Detector
    from vimpdb.config import CLIENT
    from vimpdb.testing import config
    detector = Detector(config)
    result = detector.build_command(CLIENT, "test")
    assert result[-1] == "test"
    assert result[0:-1] == config.scripts[CLIENT].split()
Ejemplo n.º 2
0
def test_detector_build_command():
    from vimpdb.config import Detector
    from vimpdb.config import CLIENT
    from vimpdb.config import Config
    configuration = Config('vim_client_script', 'vim_server_script',
        'server_name', 6666)
    detector = Detector(configuration)
    result = detector.build_command(CLIENT, "test")
    assert result[-1] == "test"
    assert result[0:-1] == configuration.scripts[CLIENT].split()