def op(self, mocker):
     return pipeline_ops_base.RequestOperation(
         request_type="FAKE_REQUEST_TYPE",
         method="GET",
         resource_location="/",
         request_body="some body",
         request_id="fake_request_id",
         callback=mocker.MagicMock(),
     )
 def op(self, mocker):
     return pipeline_ops_base.RequestOperation(
         request_type=pipeline_constant.REGISTER,
         method="PUT",
         resource_location="/",
         request_body='{"json": "payload"}',
         request_id="fake_request_id",
         callback=mocker.MagicMock(),
     )
 def op(self, mocker):
     return pipeline_ops_base.RequestOperation(
         request_type=pipeline_constant.QUERY,
         method="GET",
         resource_location="/",
         query_params={"operation_id": "fake_op_id"},
         request_body="some body",
         request_id="fake_request_id",
         callback=mocker.MagicMock(),
     )
 def op(self, mocker):
     # Only request operation supported at present by this stage is TWIN. If this changes,
     # logic in this whole test class must become more robust
     return pipeline_ops_base.RequestOperation(
         request_type=constant.TWIN,
         method="GET",
         resource_location="/",
         request_body=" ",
         request_id="fake_request_id",
         callback=mocker.MagicMock(),
     )