import unittest.mock

@unittest.mock.patch('builtins.input', lambda: 'y')
def test_input_mocking():
    assert input() == 'y'

test_input_mocking()
