'Load a known CRL and inspect its revocations.  Both
PEM and DER formats are loaded.'

def test_load_crl(self):

    crl = load_crl(FILETYPE_PEM, crlData)
    revs = crl.get_revoked()
    self.assertEqual(len(revs), 2)
    self.assertEqual(revs[0].get_serial(), b('03AB'))
    self.assertEqual(revs[0].get_reason(), None)
    self.assertEqual(revs[1].get_serial(), b('0100'))
    self.assertEqual(revs[1].get_reason(), b('Superseded'))
    der = _runopenssl(crlData, 'crl', '-outform', 'DER')
    crl = load_crl(FILETYPE_ASN1, der)
    revs = crl.get_revoked()
    self.assertEqual(len(revs), 2)
    self.assertEqual(revs[0].get_serial(), b('03AB'))
    self.assertEqual(revs[0].get_reason(), None)
    self.assertEqual(revs[1].get_serial(), b('0100'))
    self.assertEqual(revs[1].get_reason(), b('Superseded'))
