def testCommitAndFetch(self):

        client = LDAPClientTestDriver(
            [   pureldap.LDAPModifyResponse(resultCode=0,
                                            matchedDN='',
                                            errorMessage='')
                ],
            [   pureldap.LDAPSearchResultEntry('cn=foo,dc=example,dc=com',
                                               [('aValue', ['foo', 'bar'])],
                                               ),
                pureldap.LDAPSearchResultDone(resultCode=0),
                ])
        o=ldapsyntax.LDAPEntry(client=client,
                               dn='cn=foo,dc=example,dc=com',
                               attributes={
            'objectClass': ['a', 'b'],
            'aValue': ['a'],
            })

        o['aValue']=['foo', 'bar']
        d=o.commit()
        d.addCallback(self.assertIdentical, o)

        d.addCallback(lambda _: o.fetch('aValue'))
        d.addCallback(self.assertIdentical, o)

        def cb(dummy):
            client.assertSent(delta.ModifyOp('cn=foo,dc=example,dc=com', [
                delta.Replace('aValue', ['foo', 'bar']),
                ]).asLDAP(),
                              pureldap.LDAPSearchRequest(
                baseObject='cn=foo,dc=example,dc=com',
                scope=pureldap.LDAP_SCOPE_baseObject,
                attributes=['aValue'],
                ))
        d.addCallback(cb)
        return d
:param Channel channel: amqp-storm Channel
dataset/ETHPy150Open twisted/ldaptor/ldaptor/test/test_ldapsyntax.py/LDAPSyntaxFetch.testCommitAndFetch--crossover with--dataset/ETHPy150Open eandersson/amqpstorm/amqpstorm/message.py/Message.__init__