1 2 3 4 5 6 7 8 9
use crate::cert::Identity; #[test] fn test_cert_init() { let cert = Identity::new("cert".into(), "pw".into(), None); assert_eq!(cert.cert(), "cert"); assert_eq!(cert.pw(), "pw"); assert_eq!(cert.ca(), None); }