Esempio n. 1
0
def test_remove_capitalization_of_dict_keys():
    result = remove_capitalization_of_dict_keys(
        {
            "Id": "IdValue",
            "Fields": [{"Key": "KeyValue", "StringValue": "StringValueValue"}],
        }
    )

    result.should.equal(
        {
            "id": "IdValue",
            "fields": [{"key": "KeyValue", "stringValue": "StringValueValue"}],
        }
    )
Esempio n. 2
0
def test_remove_capitalization_of_dict_keys():
    result = remove_capitalization_of_dict_keys(
        {
            "Id": "IdValue",
            "Fields": [{
                "Key": "KeyValue",
                "StringValue": "StringValueValue"
            }]
        }
    )

    result.should.equal({
        "id": "IdValue",
        "fields": [{
            "key": "KeyValue",
            "stringValue": "StringValueValue"
        }],
    })