

def test_mappings_protocol(self):
    d = self.dtype(a=1, b=2)
    assert (dict(self) == {
        'a': 1,
        'b': 2,
    })
    assert (dict(**d) == {
        'a': 1,
        'b': 2,
    })

dataset/ETHPy150Open MongoEngine/mongoengine/tests/test_datastructures.py TestStrictDict.test_mappings_protocol/VarMisuse@29/33 `d`->`self`