Commit 151a4b05 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

[trac1341] fix spelling typo in code

and in tests
parent 3924f73f
...@@ -928,9 +928,9 @@ class TestBossComponents(unittest.TestCase): ...@@ -928,9 +928,9 @@ class TestBossComponents(unittest.TestCase):
(anyway it is not told so). It does not die if it is killed (anyway it is not told so). It does not die if it is killed
the first time. It dies only when killed forcefully. the first time. It dies only when killed forcefully.
""" """
def kill(self, forcefull=False): def kill(self, forceful=False):
killed.append(forcefull) killed.append(forceful)
if forcefull: if forceful:
bob.components = {} bob.components = {}
def pid(self): def pid(self):
return 1 return 1
......
...@@ -283,7 +283,7 @@ class BaseComponent: ...@@ -283,7 +283,7 @@ class BaseComponent:
""" """
pass pass
def kill(self, forcefull=False): def kill(self, forceful=False):
""" """
Kills the component. Kills the component.
......
...@@ -57,8 +57,8 @@ class SockCreator(BaseComponent): ...@@ -57,8 +57,8 @@ class SockCreator(BaseComponent):
""" """
return self.__creator.pid() if self.__creator else None return self.__creator.pid() if self.__creator else None
def kill(self, forcefull=False): def kill(self, forceful=False):
# We don't really care about forcefull here # We don't really care about forceful here
if self.__creator: if self.__creator:
self.__creator.kill() self.__creator.kill()
...@@ -130,7 +130,7 @@ class SetUID(BaseComponent): ...@@ -130,7 +130,7 @@ class SetUID(BaseComponent):
posix.setuid(self.uid) posix.setuid(self.uid)
def _stop_internal(self): pass def _stop_internal(self): pass
def kill(self, forcefull=False): pass def kill(self, forceful=False): pass
def name(self): def name(self):
return "Set UID" return "Set UID"
......
...@@ -592,7 +592,7 @@ class TestComponent(BaseComponent): ...@@ -592,7 +592,7 @@ class TestComponent(BaseComponent):
def _failed_internal(self): def _failed_internal(self):
self.log('failed') self.log('failed')
def kill(self, forcefull=False): def kill(self, forceful=False):
self.log('killed') self.log('killed')
class FailComponent(BaseComponent): class FailComponent(BaseComponent):
......
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