'Test decoding a signature message with wrong size'

def test_decoding_half_block_wrong_size(self):

    meta = self.community.get_meta_message(HALF_BLOCK)
    message = meta.impl(distribution=(self.community.claim_global_time(),), payload=(self.block,))
    encoded_message = self.converter._encode_half_block(message)[0]
    with self.assertRaises(DropPacket):
        self.converter._decode_half_block(TestPlaceholder(meta), 0, encoded_message[:(-60)])
    with self.assertRaises(DropPacket):
        self.converter._decode_half_block(TestPlaceholder(meta), 0, encoded_message[:(-10)])
