def set_when(self, when):
self._when = when<EOL>self._section_name_shown = False<EOL>if when == "<STR_LIT:start>":<EOL><INDENT>self._test_outcome_written = False<EOL><DEDENT>
Prepares for the given test phase (setup/call/teardown)