diff options
Diffstat (limited to 'grc')
-rw-r--r-- | grc/base/Block.py | 8 | ||||
-rw-r--r-- | grc/base/Element.py | 7 | ||||
-rw-r--r-- | grc/base/Param.py | 8 |
3 files changed, 0 insertions, 23 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py index a9dae660a..fc501205f 100644 --- a/grc/base/Block.py +++ b/grc/base/Block.py @@ -116,14 +116,6 @@ class Block(Element): except AssertionError: raise Exception, 'Key "%s" already exists in sinks'%key #store the port self.get_sinks().append(sink) - #begin the testing - self.test() - - def test(self): - """ - Call test on all children. - """ - map(lambda c: c.test(), self.get_params() + self.get_sinks() + self.get_sources()) def get_enabled(self): """ diff --git a/grc/base/Element.py b/grc/base/Element.py index 02b57df3a..43cee886c 100644 --- a/grc/base/Element.py +++ b/grc/base/Element.py @@ -22,13 +22,6 @@ class Element(object): def __init__(self, parent=None): self._parent = parent - def test(self): - """ - Test the element against failures. - Overload this method in sub-classes. - """ - pass - ################################################## # Element Validation API ################################################## diff --git a/grc/base/Param.py b/grc/base/Param.py index eb7a57f51..e56eac36e 100644 --- a/grc/base/Param.py +++ b/grc/base/Param.py @@ -98,14 +98,6 @@ class Param(Element): try: assert self.get_value() in self.get_option_keys() except AssertionError: raise Exception, 'The value "%s" is not in the possible values of "%s".'%(self.get_value(), self.get_option_keys()) else: self._value = value or '' - #begin the testing - self.test() - - def test(self): - """ - call test on all children - """ - map(lambda c: c.test(), self.get_options()) def validate(self): """ |