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
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
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
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