

def test__data_is_copied(self):
    [object] = self.collection.find()
    self.assertEqual(dict(self.orig_data, _id=self.object_id), object)
    self.data.pop('a')
    self.data['b'].append(5)
    self.assertEqual(dict(self.orig_data, _id=self.object_id), object)
    [object] = self.collection.find()
    self.assertEqual(dict(self.orig_data, _id=self.object_id), object)

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py InsertedDocumentTest.test__data_is_copied/original