'If passed ``FILETYPE_TEXT`` for the format, ``CRL.export`` returns a
text format string like the one produced by the openssl command line
tool.'

def test_export_text(self):

    crl = self._get_crl()
    dumped_crl = crl.export(self.cert, self.pkey, FILETYPE_ASN1)
    text = _runopenssl(dumped_crl, 'crl', '-noout', '-text', '-inform', 'DER')
    dumped_text = crl.export(self.cert, self.pkey, type=FILETYPE_TEXT)
    self.assertEqual(text, dumped_text)
