deboa-smol 0.1.0-beta.6

A friendly rest client on top of hyper.
1
2
3
4
5
6
7
8
9
10
use crate::{
    cert::{Certificate, ContentEncoding},
    tests::helpers::CA_CERT,
};

#[test]
fn test_cert_init() {
    let cert = Certificate::from_slice(CA_CERT, ContentEncoding::DER);
    assert_eq!(cert.as_bytes(), CA_CERT);
}