def testUndoJournaling(self):
        client=LDAPClientTestDriver(
            [ pureldap.LDAPModifyResponse(resultCode=0,
                                          matchedDN='',
                                          errorMessage=''),
            ])
        o=ldapsyntax.LDAPEntry(client=client,
                               dn='cn=foo,dc=example,dc=com',
                               attributes={
            'objectClass': ['a', 'b'],
            'aValue': ['a'],
            'bValue': ['b'],
            'cValue': ['c'],
            })
        o['aValue']=['foo', 'bar']
        o['aValue']=['quux']
        del o['cValue']
        o.undo()
        o['aValue'].update(['newValue', 'anotherNewValue'])
        d=o.commit()
        def cb(dummy):
            self.failUnlessEqual(o['aValue'], ['a', 'newValue', 'anotherNewValue'])
            self.failUnlessEqual(o['bValue'], ['b'])
            self.failUnlessEqual(o['cValue'], ['c'])
            client.assertSent(delta.ModifyOp('cn=foo,dc=example,dc=com', [
                delta.Add('aValue', ['newValue', 'anotherNewValue']),
                ]).asLDAP())
        d.addCallback(cb)
        return d
Clear the transaction history - `self.history`
dataset/ETHPy150Open twisted/ldaptor/ldaptor/test/test_ldapsyntax.py/LDAPSyntaxAttributes.testUndoJournaling--crossover with--dataset/ETHPy150Open swordapp/python-client-sword2/sword2/connection.py/Connection.reset_transaction_history