コード例 #1
0
def test_parse_connection_disable_events():
    correct_connection = {'child_input': 'ip',
                          'parent': 'node1',
                          'parent_input': 'ip',
                          'events': False
                          }
    connection = cr.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 = cr.parse_connection('ip', 'node1::ip')
    assert correct_connection == connection