

def test_iter_with_nonexisting_attrs(self):
    d = self.dtype(a=1, b=1, c=1, x=2)
    self.assertEqual(list(d), ['a', 'b', 'c', 'x'])

dataset/ETHPy150Open MongoEngine/mongoengine/tests/test_datastructures.py TestSemiSrictDict.test_iter_with_nonexisting_attrs/original