Exemple #1
0
    def get_twin_op(self, stage):
        stage.last_version_seen = -1
        stage.handle_pipeline_event(pipeline_events_base.ConnectedEvent())

        get_twin_op = stage.send_op_down.call_args[0][0]
        assert isinstance(get_twin_op, pipeline_ops_iothub.GetTwinOperation)

        stage.send_op_down.reset_mock()
        stage.send_event_up.reset_mock()

        return get_twin_op
Exemple #2
0
 def event(self):
     return pipeline_events_base.ConnectedEvent()