def parseoutcomes(self):
for line in reversed(self.outlines):<EOL><INDENT>if "<STR_LIT>" in line:<EOL><INDENT>outcomes = rex_outcome.findall(line)<EOL>if outcomes:<EOL><INDENT>d = {}<EOL>for num, cat in outcomes:<EOL><INDENT>d[cat] = int(num)<EOL><DEDENT>return d<EOL><DEDENT><DEDENT><DEDENT>raise ValueError("<STR_LIT>")<EOL>
Return a dictionary of outcomestring->num from parsing the terminal
        output that the test process produced.