def testDeleteInvalidates(self):
        client = LDAPClientTestDriver(
            [pureldap.LDAPDelResponse(resultCode=0,
                                      matchedDN='',
                                      errorMessage=''),
             ])
        o=ldapsyntax.LDAPEntry(client=client,
                               dn='cn=foo,dc=example,dc=com',
                               attributes={
            'objectClass': ['a'],
            })
        d=o.delete()
        def cb(dummy):
            self.failUnlessRaises(
                ldapsyntax.ObjectDeletedError,
                o.search,
                filterText='(foo=a)')
            self.failUnlessRaises(
                ldapsyntax.ObjectDeletedError,
                o.get,
                'objectClass')
        d.addCallback(cb)
        return d
Read blocks from a buffer and update a hash with them.
dataset/ETHPy150Open twisted/ldaptor/ldaptor/test/test_ldapsyntax.py/LDAPSyntaxDelete.testDeleteInvalidates--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/storage/_helpers.py/_write_buffer_to_hash