def _mock_stdin_writer(self):
        class MockedStdin(_Dummy):
            pass
        MockedStdin.write_stdin = Mock()
        return MockedStdin
Return new _Dummy-based class whose write_stdin() method is a mock.
dataset/ETHPy150Open pyinvoke/invoke/tests/runners.py/Runner_._mock_stdin_writer