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: block_verify.rs
    path of file: ./repos/cita/cita-auth/src
    
    the code of the file until where you have to start completion: // Copyright Rivtower Technologies LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE
    
    fn test_verify_quota() {
        let keypair = KeyPair::gen_keypair();
        let privkey = keypair.privkey();
        let mut raw_tx = Transaction::new();
        raw_tx.quota = 1000;
        let tx = raw_tx.sign(*privkey);

        let block = BlockVerify {
            transactions: &vec![tx],
        };

        let mut account_quota_limit = AccountGasLimit::new();
        account_quota_limit.set_common_quota_limit(5000);

        // block_quota_limit and account_quota_limit pass
        assert!(block.verify_quota(10000, &account_quota_limit, true));
        // block_quota_limit failed
        assert_eq!(block.verify_quota(1, &account_quota_limit, true), false);
        assert_eq!(block.verify_quota(1, &account_quota_limit, false), false);

        account_quota_limit.set_common_quota_limit(500);
        // common_quota_limit failed
        assert_eq!(block.verify_quota(10000, &account_quota_limit, true), false);

        account_quota_limit.set_common_quota_limit(500);
        let address = pubkey_to_address(keypair.pubkey());
        account_quota_limit
            .mut_specific_quota_limit()
            .insert(address.lower_hex(), 5000);
        // specific_quota_limit pass
        assert!(block.verify_quota(10000, &account_quota_limit, true));

        // specific_quota_limit failed
        account_quota_limit
            .mut_specific_quota_limit()
            .insert(address.lower_hex(), 500);
        assert_eq!(block.verify_quota(10000, &account_quota_limit, true), false);
    }