use http_plz::ParseMessage;

use super::*;

#[test]
fn response_update() {
    let buf = BytesMut::from("HTTP/1.1 200 OK\r\n\r\nhello");
    let req = OneResponse::parse(buf).unwrap();
    let verify = "HTTP/1.1 200 OK\r\ncontent-length: 5\r\n\r\nhello";
    assert_eq!(req.into_bytes(), verify);
}
