class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Tests that the correct error messages is raised if
  the given state vector is not normalized.
docstr_tok: ["Tests","that","the","correct","error","messages","is","raised","if","the","given","state","vector","is","not","normalized","."]
code: def test_error_state_vector_not_normalized(self, state_vector, wires):
      """Tests that the correct error messages is raised if
      the given state vector is not normalized."""
  
      with pytest.raises(
          ValueError, match="State vectors have to be of norm"
      ):
          qml.MottonenStatePreparation(state_vector, wires)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
  from pennylane.templates.state_preparations.mottonen import gray_code, _get_alpha_y
label_desc: Use image node_id 1 for calling the TestInputs obj's underlying member method code with example usage: obj.test_error_state_vector_not_normalized(state_vector, wires) without return types