Commit 9f792ee3 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1429] fixed typo and minor editorial issue

parent 40cfd32c
......@@ -844,7 +844,7 @@ class BoB:
share_mode = args['share_mode']
if share_mode not in ['ANY', 'SAMEAPP', 'NO']:
raise ValueError("Share mode must be one of ANY, SAMEAPP" +
"or NO")
" or NO")
share_name = args['share_name']
except KeyError as ke:
return \
......@@ -865,7 +865,7 @@ class BoB:
This function handles a token that comes over a unix_domain socket.
The function looks into the _socket_cache and sends the socket
identified by the tocken back over the unix_socket.
identified by the token back over the unix_socket.
fd = self._socket_cache.get_socket(token, unix_socket.fileno())
......@@ -237,7 +237,7 @@ class TestCacheCommands(unittest.TestCase):
def check_code(code, args):
Pass the args there and check if it returs success or not.
Pass the args there and check if it returns success or not.
The rest is not tested, as it is already checked in the
......@@ -246,7 +246,7 @@ class TestCacheCommands(unittest.TestCase):
self.assertEqual(code, rcode)
if code == 1:
# This should be an error message. The exact formatting
# is unknown, but we check it is string at last
# is unknown, but we check it is string at least
self.assertTrue(isinstance(ranswer, str))
def mod_args(name, value):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment