Browse Source

[trac588] Typos

Michal 'vorner' Vaner 14 years ago
parent
commit
065327bbba
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/bin/bindctl/bindcmd.py
  2. 2 2
      src/bin/bindctl/tests/bindctl_test.py

+ 1 - 1
src/bin/bindctl/bindcmd.py

@@ -127,7 +127,7 @@ class BindCmdInterpreter(Cmd):
         except KeyboardInterrupt:
             print('\nExit from bindctl')
         except socket.error as err:
-            print('Fail to send request, the connection is closed')
+            print('Failed to send request, the connection is closed')
         except http.client.CannotSendRequest:
             print('Can not send request, the connection is busy')
 

+ 2 - 2
src/bin/bindctl/tests/bindctl_test.py

@@ -328,11 +328,11 @@ class TestConfigCommands(unittest.TestCase):
         socket_err_output = io.StringIO()
         sys.stdout = socket_err_output
         self.assertRaises(None, self.tool.run())
-        self.assertEqual("Fail to send request, the connection is closed\n",
+        self.assertEqual("Failed to send request, the connection is closed\n",
                          socket_err_output.getvalue())
         socket_err_output.close()
 
-        # validate log messae for http.client.CannotSendRequest
+        # validate log message for http.client.CannotSendRequest
         cannot_send_output = io.StringIO()
         sys.stdout = cannot_send_output
         self.assertRaises(None, self.tool.run())