You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bytes.rs
    path of file: ./repos/snarkVM/ledger/block/src/transaction/deployment
    
    the code of the file until where you have to start completion: // Copyright (C) 2019-2023 Aleo Systems Inc.
// This file is part of the snarkVM library.

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this
    
    fn test_bytes() -> Result<()> {
        let rng = &mut TestRng::default();

        // Construct a new deployment.
        let expected = test_helpers::sample_deployment(rng);

        // Check the byte representation.
        let expected_bytes = expected.to_bytes_le()?;
        assert_eq!(expected, Deployment::read_le(&expected_bytes[..])?);
        Ok(())
    }