def METHOD_NAME(self, crc_params, crc_result):
    """Common part of CRC Append tests
    Creates a CRC Append block with the specified crc_params parameters,
    connects it to the Message Debug block, sends a test PDU to the
    CRC Append block, and checks that the output PDU matches the expected
    crc_result.
    """
    crc_append_block = digital.crc_append(*crc_params)
    self.tb.msg_connect((crc_append_block, 'out'), (self.dbg, 'store'))
    crc_append_block.to_basic_block()._post(pmt.intern('in'), self.pdu)
    crc_append_block.to_basic_block()._post(
        pmt.intern('system'),
        pmt.cons(pmt.intern('done'), pmt.from_long(1)))
    self.tb.start()
    self.tb.wait()
    self.assertEqual(self.dbg.num_messages(), 1)
    out = pmt.u8vector_elements(pmt.cdr(self.dbg.get_message(0)))
    self.assertEqual(out[:len(self.data)], self.data)
    self.assertEqual(out[len(self.data):], crc_result)