Exemple #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
Exemple #2
0
def test_splunk_500_log(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
Exemple #3
0
def test_activate_entitlement_log(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
Exemple #4
0
def test_unicode(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
Exemple #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
Exemple #6
0
def test_not_valid_json():
    raw_data = '('
    assert 'Not valid JSON' in show_json(raw_data)
Exemple #7
0
def test_valid_json(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected
Exemple #8
0
def test_escaped_quotes(load_data):
    raw_data, expected = load_data
    assert show_json(raw_data) == expected