def test_DotDict_dictionary_syntax():
    D = DotDict({
        'x': [1, 2, 4],
        'y': [1, 2, 5],
        'z': ['hello', 'jello', 'mello'],
    })
    D["w"] = 10
    assert D["x"][0] == D["y"][0]
    assert D["w"] == 10
def get_empty_expectation_suite(data_asset_name=None,
                                expectation_suite_name="default"):
    return DotDict({
        'data_asset_name': data_asset_name,
        'expectation_suite_name': expectation_suite_name,
        'meta': {
            'great_expectations.__version__': __version__
        },
        'expectations': []
    })
def test_DotDict_dot_syntax():
    D = DotDict({
        'x': [1, 2, 4],
        'y': [1, 2, 5],
        'z': ['hello', 'jello', 'mello'],
    })
    assert D.x[0] == D.y[0]
    assert D.x[0] != D.z[0]

    d = DotDict()
    d["y"] = 2
    assert d.y == 2
    assert d["y"] == 2

    d.x = 1
    assert d.x == 1
    assert d["x"] == 1

    assert d == {"x": 1, "y": 2}