def test_BasicDatasetProfiler_on_titanic():
    '\n    A snapshot test for BasicDatasetProfiler.\n    We are running the profiler on the Titanic dataset\n    and comparing the EVRs to ones retrieved from a\n    previously stored file.\n    '
    df = ge.read_csv('./tests/test_sets/Titanic.csv')
    (suite, evrs) = df.profile(BasicDatasetProfiler)
    print(json.dumps(suite['meta'], indent=2))
    assert ('columns' in suite['meta'])
    for (k, v) in suite['meta']['columns'].items():
        assert (v == {'description': ''})
    evrs = df.validate(result_format='SUMMARY')
    with open('tests/test_sets/expected_evrs_BasicDatasetProfiler_on_titanic.json', 'r') as file:
        expected_evrs = json.load(file, object_pairs_hook=OrderedDict)
    expected_evrs.pop('meta')
    evrs.pop('meta')
    for result in evrs['results']:
        if ('partial_unexpected_counts' in result['result']):
            result['result'].pop('partial_unexpected_counts')
    for result in expected_evrs['results']:
        if ('partial_unexpected_counts' in result['result']):
            result['result'].pop('partial_unexpected_counts')
    if (not PY2):
        assertDeepAlmostEqual(expected_evrs, evrs)
A snapshot test for BasicDatasetProfiler.
We are running the profiler on the Titanic dataset
and comparing the EVRs to ones retrieved from a
previously stored file.
def test_BasicDatasetProfiler_on_titanic():
    '\n    A snapshot test for BasicDatasetProfiler.\n    We are running the profiler on the Titanic dataset\n    and comparing the EVRs to ones retrieved from a\n    previously stored file.\n    '
    df = ge.read_csv('./tests/test_sets/Titanic.csv')
    (suite, evrs) = df.profile(BasicDatasetProfiler)
    print(json.dumps(suite['meta'], indent=2))
    assert ('columns' in suite['meta'])
    for (k, v) in suite['meta']['columns'].items():
        assert (v == {'description': })
    evrs = df.validate(result_format='SUMMARY')
    with open('tests/test_sets/expected_evrs_BasicDatasetProfiler_on_titanic.json', 'r') as file:
        expected_evrs = json.load(file, object_pairs_hook=OrderedDict)
    expected_evrs.pop('meta')
    evrs.pop('meta')
    for result in evrs['results']:
        if ('partial_unexpected_counts' in result['result']):
            result['result'].pop('partial_unexpected_counts')
    for result in expected_evrs['results']:
        if ('partial_unexpected_counts' in result['result']):
            result['result'].pop('partial_unexpected_counts')
    if (not PY2):
        assertDeepAlmostEqual(expected_evrs, evrs)