class_docstr: Verify that we blow up if SC2 thinks we did something wrong.
code: def test_error(self):
      with run_configs.get().start(want_rgb=False) as controller:
          with self.assertRaises(remote_controller.RequestError):
              controller.create_game(
                  sc_pb.RequestCreateGame()
              )  # Missing map, etc.
  
          with self.assertRaises(protocol.ProtocolError):
              controller.join_game(sc_pb.RequestJoinGame())
  
file_path: pysc2/pysc2/tests/protocol_error_test.py
imports: from absl.testing import absltest
  from pysc2 import maps
  from pysc2 import run_configs
  from pysc2.lib import protocol
  from pysc2.lib import remote_controller
  from pysc2.tests import utils
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 1 for calling the TestProtocolError obj's underlying member method code with example usage: obj.test_error() without return types