Beispiel #1
0
 def test_import_readline_fail(self, mock_print, mock_import):
     cli._import_readline()
     mock_print.assert_called_with(
         '[warning] readline library not available.')
Beispiel #2
0
 def test_import_readline_success(self, mock_print, mock_import):
     cli._import_readline()
     mock_print.assert_not_called()