class_docstr: Test that the convenience load functions access the correct entrypoint.
class_docstr_tok: ["Test","that","the","convenience","load","functions","access","the","correct","entrypoint","."]
docstr: Test that the convenience load functions access the correct entrypoint.
docstr_tok: ["Test","that","the","convenience","load","functions","access","the","correct","entrypoint","."]
code: def test_convenience_functions(
      self, method, entry_point_name, mock_plugin_converters
  ):
      """Test that the convenience load functions access the correct entrypoint."""
  
      method("Test")
  
      assert mock_plugin_converters[entry_point_name].called
      assert mock_plugin_converters[entry_point_name].last_args == (
          "Test",
      )
  
      for plugin_converter in mock_plugin_converters:
          if plugin_converter == entry_point_name:
              continue
  
          if mock_plugin_converters[plugin_converter].called:
              raise Exception(
                  f"The other plugin converter {plugin_converter} was called."
              )
  
file_path: pennylane/tests/test_io.py
imports: from unittest.mock import Mock
  import pytest
  import pennylane
label_desc: Use image node_id 2 for calling the TestLoad obj's underlying member method code with example usage: obj.test_convenience_functions(method, entry_point_name, mock_plugin_converters) without return types