def test_task_empty(self) : self.setUpEmptyClient() task = self.taskFixture("First task", running=False) w = ExecutionDetails() result = w.task(task) self.assertMultiLineEqual(result, '<div class="task" id="task_1">\n' 'TASK: "First task"\n' 'END OF TASK: "First task"\n' '</div>\n\n' )
def test_task_oneCommand(self) : self.setUpEmptyClient() task = self.taskFixture("First task", running=False, commands=1) w = ExecutionDetails() result = w.task(task) self.assertMultiLineEqual(result, '<div class="task" id="task_1">\n' 'TASK: "First task"\n' "<div class='command' id='command_1_1'>\n" " <span class='command_line'>command line</span>\n" ' <span class="command_ok">[OK]</span>\n' '</div>\n' 'END OF TASK: "First task"\n' '</div>\n\n' )