'Test if a DropPacket is raised when the crawl request size is wrong.'

def test_decoding_crawl_request_wrong_size(self):

    meta = self.community.get_meta_message(CRAWL)
    requested_sequence_number = 500
    message = meta.impl(distribution=(self.community.claim_global_time(),), payload=(requested_sequence_number,))
    encoded_message = self.converter._encode_crawl_request(message)[0]
    with self.assertRaises(DropPacket):
        self.converter._decode_crawl_request(TestPlaceholder(meta), 0, encoded_message[:(-10)])
