def op(self, stage, mocker):
     op = pipeline_ops_iothub.GetTwinOperation(callback=mocker.MagicMock())
     mocker.spy(op, "complete")
     return op
Esempio n. 2
0
 def get_twin_op(self, mocker):
     return pipeline_ops_iothub.GetTwinOperation(callback=mocker.MagicMock())
 def op(self, stage, callback):
     return pipeline_ops_iothub.GetTwinOperation(callback=callback)