

@classmethod
def instance(cls, operation):
    instance_mock = Mock()
    class_mock = Mock(return_value=instance_mock)
    operation.next_operation_class = MagicMock(return_value=class_mock)
    operation.previous_operation = MagicMock(return_value=class_mock)
    return (class_mock, instance_mock)

dataset/ETHPy150Open NicoSantangelo/sublime-text-trello/tests/util.py OperationMock.instance/original