def test_input(self, prompt=None): with mock.patch("certbot.display.util.select.select") as mock_select: mock_select.return_value = ( [self.stdin], [], [], ) self.assertEqual(display_util.input_with_timeout(prompt), self.expected_msg)
def _call(cls, *args, **kwargs): from certbot.display.util import input_with_timeout return input_with_timeout(*args, **kwargs)
def test_input(self, prompt=None): with mock.patch("certbot.display.util.select.select") as mock_select: mock_select.return_value = ([self.stdin], [], [],) self.assertEqual(display_util.input_with_timeout(prompt), self.expected_msg)