

def test_setattr_getattr(self):
    d = self.dtype()
    d.a = 1
    self.assertEqual(d.a, 1)
    self.assertRaises(AttributeError, (lambda : d.b))

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