96 suite.setup.visit(self)
97 suite.suites.visit(self)
98 suite.tests.visit(self)
99 if suite.has_teardown:
100 suite.teardown.visit(self)
120 if self.
start_teststart_test(test)
is not False:
122 test.setup.visit(self)
123 test.body.visit(self)
124 if test.has_teardown:
125 test.teardown.visit(self)
147 if hasattr(kw,
'body'):
150 kw.teardown.visit(self)
175 if self.
start_forstart_for(for_)
is not False:
176 for_.body.visit(self)
206 iteration.body.visit(self)
234 if self.
start_ifstart_if(if_)
is not False:
261 branch.body.visit(self)
286 if self.
start_trystart_try(try_)
is not False:
287 try_.body.visit(self)
309 branch.body.visit(self)
334 if self.
start_whilestart_while(while_)
is not False:
335 while_.body.visit(self)
365 iteration.body.visit(self)
387 if hasattr(return_,
'body'):
388 return_.body.visit(self)
410 if hasattr(continue_,
'body'):
411 continue_.body.visit(self)
432 if self.
start_breakstart_break(break_)
is not False:
433 if hasattr(break_,
'body'):
434 break_.body.visit(self)
Interface to ease traversing through a test suite structure.
def visit_try_branch(self, branch)
Visits individual TRY, EXCEPT, ELSE and FINALLY branches.
def start_if_branch(self, branch)
Called when an IF/ELSE branch starts.
def start_while(self, while_)
Called when a WHILE loop starts.
def visit_keyword(self, kw)
Implements traversing through keywords.
def visit_for(self, for_)
Implements traversing through FOR loops.
def end_body_item(self, item)
Called, by default, when keywords, messages or control structures end.
def visit_continue(self, continue_)
Visits CONTINUE elements.
def visit_test(self, test)
Implements traversing through tests.
def start_return(self, return_)
Called when a RETURN element starts.
def start_break(self, break_)
Called when a BREAK element starts.
def end_try_branch(self, branch)
Called when TRY, EXCEPT, ELSE and FINALLY branches end.
def visit_while(self, while_)
Implements traversing through WHILE loops.
def end_try(self, try_)
Called when a TRY/EXCEPT structure ends.
def visit_if_branch(self, branch)
Implements traversing through single IF/ELSE branch.
def end_test(self, test)
Called when a test ends.
def start_for(self, for_)
Called when a FOR loop starts.
def visit_while_iteration(self, iteration)
Implements traversing through single WHILE loop iteration.
def start_while_iteration(self, iteration)
Called when a WHILE loop iteration starts.
def start_if(self, if_)
Called when an IF/ELSE structure starts.
def end_while(self, while_)
Called when a WHILE loop ends.
def end_while_iteration(self, iteration)
Called when a WHILE loop iteration ends.
def end_suite(self, suite)
Called when a suite ends.
def end_for(self, for_)
Called when a FOR loop ends.
def visit_if(self, if_)
Implements traversing through IF/ELSE structures.
def start_test(self, test)
Called when a test starts.
def start_for_iteration(self, iteration)
Called when a FOR loop iteration starts.
def end_message(self, msg)
Called when a message ends.
def end_keyword(self, keyword)
Called when a keyword ends.
def start_message(self, msg)
Called when a message starts.
def visit_suite(self, suite)
Implements traversing through suites.
def end_return(self, return_)
Called when a RETURN element ends.
def start_body_item(self, item)
Called, by default, when keywords, messages or control structures start.
def visit_message(self, msg)
Implements visiting messages.
def end_continue(self, continue_)
Called when a CONTINUE element ends.
def start_try(self, try_)
Called when a TRY/EXCEPT structure starts.
def visit_for_iteration(self, iteration)
Implements traversing through single FOR loop iteration.
def start_try_branch(self, branch)
Called when TRY, EXCEPT, ELSE or FINALLY branches start.
def end_break(self, break_)
Called when a BREAK element ends.
def start_continue(self, continue_)
Called when a CONTINUE element starts.
def end_for_iteration(self, iteration)
Called when a FOR loop iteration ends.
def visit_return(self, return_)
Visits a RETURN elements.
def visit_try(self, try_)
Implements traversing through TRY/EXCEPT structures.
def start_keyword(self, keyword)
Called when a keyword starts.
def end_if(self, if_)
Called when an IF/ELSE structure ends.
def visit_break(self, break_)
Visits BREAK elements.
def end_if_branch(self, branch)
Called when an IF/ELSE branch ends.
def start_suite(self, suite)
Called when a suite starts.