예제 #1
0
def test_not_valid_json_multiline():
    raw_data = 'one, two'
    expected = (
        'Not valid JSON\n'
        'one,\n'
        'two'
    )
    assert show_json(raw_data) == expected
예제 #2
0
def test_splunk_500_log(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
예제 #3
0
def test_activate_entitlement_log(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
예제 #4
0
def test_unicode(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
예제 #5
0
def test_over_escaped_quotes(load_data):
    logger.info('Here  is the >>>>>>>>>>>>>>>>>>>>>')
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
예제 #6
0
def test_not_valid_json():
    raw_data = '('
    assert 'Not valid JSON' in show_json(raw_data)
예제 #7
0
def test_valid_json(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
예제 #8
0
def test_escaped_quotes(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected