(self)
E.g. returns all the `test` nodes that are named as x, below:

            if x:
                pass
            elif x:
                pass
E.g. returns all the `test` nodes that are named as x, below:
E . g . returns all the test nodes that are named as x below :
def get_test_nodes(self):
        """
        E.g. returns all the `test` nodes that are named as x, below:

            if x:
                pass
            elif x:
                pass
        """
        for i, c in enumerate(self.children):
            if c in ('elif', 'if'):
                yield self.children[i + 1]
def get_test_nodes ( self ) : for i , c in enumerate ( self . children ) : if c in ( 'elif' , 'if' ) : yield self . children [ i + 1 ]