class_docstr: Unit tests for the ``transmon_interaction`` function.
docstr: Test that providing list of coupling with wrong length raises error
docstr_tok: ["Test","that","providing","list","of","coupling","with","wrong","length","raises","error"]
code: def test_wrong_g_len_raises_error(self):
      """Test that providing list of coupling with wrong length raises error"""
      with pytest.raises(ValueError, match="Number of coupling terms"):
          _ = transmon_interaction(
              connections=connections,
              qubit_freq=[0.1],
              coupling=[0.2, 0.2],
              wires=[0],
          )
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.pulse import HardwareHamiltonian, transmon_interaction, transmon_drive
  from pennylane.pulse.transmon import TransmonSettings, a, ad, AmplitudeAndPhaseAndFreq, _reorder_AmpPhaseFreq, callable_freq_to_angular
  from pennylane.pulse.hardware_hamiltonian import HardwarePulse
  from pennylane.wires import Wires
label_desc: Use image node_id 7 for calling the TestTransmonInteraction obj's underlying member method code with example usage: obj.test_wrong_g_len_raises_error() without return types