def METHOD_NAME(self):
    for keyword in ["COMMAND", "TELEMETRY"]:
        tf = tempfile.NamedTemporaryFile(mode="w")
        tf.write(f"{keyword} tgt1 pkt1 LITTLE_ENDIAN 'Packet' extra")
        tf.seek(0)  # Rewind so the file is ready to read
        with self.assertRaisesRegex(
            ConfigParser.Error, f"Too many parameters for {keyword}"
        ):
            self.pc.process_file(tf.name, "TGT1")
        tf.close()