Beispiel #1
0
 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)
Beispiel #2
0
 def _call(cls, *args, **kwargs):
     from certbot.display.util import input_with_timeout
     return input_with_timeout(*args, **kwargs)
Beispiel #3
0
 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)
Beispiel #4
0
 def _call(cls, *args, **kwargs):
     from certbot.display.util import input_with_timeout
     return input_with_timeout(*args, **kwargs)