def set_mock(self, service, method):

        _mock = mock.MagicMock()
        self.mocked[_mock_key(service, method)] = _mock
        return _mock
Set exit. When Control-D has been pressed.
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/testing/__init__.py/MockableTransport.set_mock--crossover with--dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/interface.py/CommandLineInterface.exit