|
@@ -102,6 +102,9 @@ class ComponentTests(unittest.TestCase):
|
|
|
self.assertFalse(self.__stop_called)
|
|
|
self.assertFalse(self.__failed_called)
|
|
|
self.assertFalse(component.running())
|
|
|
+
|
|
|
+ self.assertRaises(ValueError, component.stop)
|
|
|
+ self.assertRaises(ValueError, component.failed)
|
|
|
|
|
|
def check_started(self, component):
|
|
|
"""
|
|
@@ -173,6 +176,8 @@ class ComponentTests(unittest.TestCase):
|
|
|
self.assertFalse(component.running())
|
|
|
|
|
|
self.assertRaises(ValueError, component.stop)
|
|
|
+
|
|
|
+ self.assertRaises(ValueError, component.failed)
|
|
|
|
|
|
|
|
|
component.start()
|