コード例 #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
コード例 #5
0
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