def prepare_suite(self, suite):
all_tests = {}<EOL>for s in suite:<EOL><INDENT>m = re.match(r'<STR_LIT>', str(s))<EOL>if m:<EOL><INDENT>name = m.group(<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>name = str(s).split('<STR_LIT:.>')[-<NUM_LIT:1>]<EOL><DEDENT>all_tests[name] = s<EOL><DEDENT>return self.orderTests(all_tests, suite)<EOL>
Prepare suite and determine test ordering