示例#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
示例#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
示例#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
示例#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
def test_parse_connection_no_connection():
    connection = vr.parse_connection('host_file', 'ip', '10.0.0.2')
    assert None == connection
示例#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
示例#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