def test_not_valid_json_multiline(): raw_data = 'one, two' expected = ( 'Not valid JSON\n' 'one,\n' 'two' ) assert show_json(raw_data) == expected
def test_splunk_500_log(load_data): raw_data, expected = load_data assert show_json(raw_data) == expected
def test_activate_entitlement_log(load_data): raw_data, expected = load_data assert show_json(raw_data) == expected
def test_unicode(load_data): raw_data, expected = load_data assert show_json(raw_data) == expected
def test_over_escaped_quotes(load_data): logger.info('Here is the >>>>>>>>>>>>>>>>>>>>>') raw_data, expected = load_data assert show_json(raw_data) == expected
def test_not_valid_json(): raw_data = '(' assert 'Not valid JSON' in show_json(raw_data)
def test_valid_json(load_data): raw_data, expected = load_data assert show_json(raw_data) == expected
def test_escaped_quotes(load_data): raw_data, expected = load_data assert show_json(raw_data) == expected