def test_report_result(self): in_filename = os.path.join('test', 'data.txt.viewtest_report') commands = 'import %s;report' % (in_filename) commandline = 'python main.py --assertion multi %s' % commands stdout = get_stdout(commandline) import util self.assertNotEqual(-1, stdout.find('199'), 'TODO') self.assertNotEqual(-1, stdout.find(util.get_today_timestr_plus_minute(199)), 'GOALTIME') self.assertNotEqual(-1, stdout.find('112'), 'DONE')