class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Checks exception if the features contain values other than zero and one.
docstr_tok: ["Checks","exception","if","the","features","contain","values","other","than","zero","and","one","."]
code: def test_input_not_binary_exception(self):
      """Checks exception if the features contain values other than zero and one."""
  
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit(x=None):
          qml.BasisEmbedding(features=x, wires=range(2))
          return qml.expval(qml.PauliZ(0))
  
      with pytest.raises(
          ValueError, match="Basis state must only consist of"
      ):
          circuit(x=[2, 3])
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestInputs obj's underlying member method code with example usage: obj.test_input_not_binary_exception() and returns: qml