Exemplo n.º 1
0
def test_parse_connection_disable_events():
    correct_connection = {'child_input': 'ip',
     'parent' : 'node1',
     'parent_input': 'ip',
     'events' : False
    }
    connection = vr.parse_connection('ip', 'node1::ip::NO_EVENTS')
    assert correct_connection == connection
Exemplo n.º 2
0
def test_parse_connection():
    correct_connection = {'child_input': 'ip',
     'parent' : 'node1',
     'parent_input': 'ip',
     'events' : None
    }
    connection = vr.parse_connection('ip', 'node1::ip')
    assert correct_connection == connection
Exemplo n.º 3
0
def test_parse_connection_disable_events():
    correct_connection = {'child_input': 'ip',
     'parent' : 'node1',
     'parent_input': 'ip',
     'events' : False
    }
    connection = vr.parse_connection('ip', 'node1::ip::NO_EVENTS')
    assert correct_connection == connection
Exemplo n.º 4
0
def test_parse_connection():
    correct_connection = {'child_input': 'ip',
     'parent' : 'node1',
     'parent_input': 'ip',
     'events' : None
    }
    connection = vr.parse_connection('ip', 'node1::ip')
    assert correct_connection == connection
Exemplo n.º 5
0
def test_parse_connection_no_connection():
    connection = vr.parse_connection('host_file', 'ip', '10.0.0.2')
    assert None == connection
Exemplo n.º 6
0
def test_parse_connection_disable_events():
    correct_connection = {"child_input": "ip", "parent": "node1", "parent_input": "ip", "events": False}
    connection = vr.parse_connection("ip", "node1::ip::NO_EVENTS")
    assert correct_connection == connection
Exemplo n.º 7
0
def test_parse_connection():
    correct_connection = {"child_input": "ip", "parent": "node1", "parent_input": "ip", "events": None}
    connection = vr.parse_connection("ip", "node1::ip")
    assert correct_connection == connection