

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

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