'If passed the name of a digest function, ``CRL.export`` uses a
signature algorithm based on that digest function.'

def test_export_custom_digest(self):

    crl = self._get_crl()
    dumped_crl = crl.export(self.cert, self.pkey, digest='sha1')
    text = _runopenssl(dumped_crl, 'crl', '-noout', '-text')
    text.index(b('Signature    Algorithm:    sha1'))
