

def test_items(self):
    d = self.dtype(a=1)
    self.assertEqual(d.items(), [('a', 1)])
    d = self.dtype(a=1, b=2)
    self.assertEqual(d.items(), [('a', 1), ('b', 2)])

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