'If not passed the name of a digest function, ``CRL.export`` uses a
signature algorithm based on MD5 and emits a deprecation warning.'

def test_export_default_digest(self):

    crl = self._get_crl()
    with catch_warnings(record=True) as catcher:
        simplefilter('always')
        dumped_crl = crl.export(self.cert, self.pkey)
        self.assertEqual('The    default    message    digest    (md5)    is    deprecated.        Pass    the    name    of    a    message    digest    explicitly.', str(catcher[0].message))
    text = _runopenssl(dumped_crl, 'crl', '-noout', '-text')
    text.index(b('Signature    Algorithm:    md5'))
