]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2254] trivial editorial fix
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 27 Sep 2012 22:08:51 +0000 (15:08 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 27 Sep 2012 22:08:51 +0000 (15:08 -0700)
src/bin/bindctl/bindcmd.py
src/bin/bindctl/tests/bindctl_test.py

index 9e7b1e1511220261fedf38885c0d8b2e508860c8..e798a41c12b024a692a88479e74c974edca2aa1b 100644 (file)
@@ -496,7 +496,8 @@ class BindCmdInterpreter(Cmd):
                     if self._cmd_has_identifier_param(cmd):
                         # For tab-completion of identifiers, replace hardcoded
                         # hints with hints derived from the config data
-                        id_text = self.location + "/" + cur_line.rpartition(" ")[2]
+                        id_text = self.location + "/" +\
+                            cur_line.rpartition(" ")[2]
                         hints = self._get_identifier_startswith(id_text)
 
             except CmdModuleNameFormatError:
index 3364211d3daf8a6c80ff1edd1e614990c2c3b5d3..1b2aae63257d2dcaeb90a1a5299f4cb33657f469 100644 (file)
@@ -420,15 +420,15 @@ class TestConfigCommands(unittest.TestCase):
         sys.stdout = self.stdout_backup
 
     def test_cmd_has_identifier_param(self):
-        module = ModuleInfo(name = "test_module")
+        module = ModuleInfo(name="test_module")
 
-        cmd = CommandInfo(name = "command_with_identifier")
-        param = ParamInfo(name = bindcmd.IDENTIFIER_PARAM)
+        cmd = CommandInfo(name="command_with_identifier")
+        param = ParamInfo(name=bindcmd.IDENTIFIER_PARAM)
         cmd.add_param(param)
         module.add_command(cmd)
 
-        cmd = CommandInfo(name = "command_without_identifier")
-        param = ParamInfo(name = "some_argument")
+        cmd = CommandInfo(name="command_without_identifier")
+        param = ParamInfo(name="some_argument")
         cmd.add_param(param)
         module.add_command(cmd)
 
@@ -445,7 +445,7 @@ class TestConfigCommands(unittest.TestCase):
 
     def test_get_identifier_startswith(self):
         hints = self.tool._get_identifier_startswith("/")
-        self.assertEqual([ 'foo/an_int', 'foo/a_list'], hints)
+        self.assertEqual(['foo/an_int', 'foo/a_list'], hints)
 
         hints = self.tool._get_identifier_startswith("/foo/an")
         self.assertEqual(['foo/an_int'], hints)