we dont use test() -> remove it
authorJosh Blum <josh@joshknows.com>
Thu, 3 Sep 2009 22:46:07 +0000 (15:46 -0700)
committerJosh Blum <josh@joshknows.com>
Thu, 3 Sep 2009 22:46:07 +0000 (15:46 -0700)
grc/base/Block.py
grc/base/Element.py
grc/base/Param.py

index a9dae660a33a44ba9a8ca87b0a0405b89ff33103..fc501205fdb10091fd1fe5d420029daa81470f2c 100644 (file)
@@ -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):
                """
index 02b57df3a9ff267ef9dd685169a34bc89fd03223..43cee886c18f38d0c78b18767a6e6c0c33199fc7 100644 (file)
@@ -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
        ##################################################
index eb7a57f514e5e16d2464c776a145f0fb2d00b533..e56eac36e172a4185c2b6f0c2b3d17c10deef984 100644 (file)
@@ -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):
                """