

def test_get(self):
    d = self.dtype(a=1)
    self.assertEqual(d.get('a'), 1)
    self.assertEqual(d.get('b', 'bla'), 'bla')

dataset/ETHPy150Open MongoEngine/mongoengine/tests/test_datastructures.py TestStrictDict.test_get/original