

def test_delta_with_dbref_true(self):
    (person, organization, employee) = self.circular_reference_deltas_2(Document, Document, True)
    employee.name = 'test'
    self.assertEqual(organization._get_changed_fields(), [])
    (updates, removals) = organization._delta()
    self.assertEqual({
        
    }, removals)
    person.assertEqual({
        
    }, updates)
    organization.employees.append(person)
    (updates, removals) = organization._delta()
    self.assertEqual({
        
    }, removals)
    self.assertTrue(('employees' in updates))

dataset/ETHPy150Open MongoEngine/mongoengine/tests/document/delta.py DeltaTest.test_delta_with_dbref_true/VarMisuse@73/96 `self`->`person`