def test_execution_running(self) : execution = self.executionFixture(running=True) w = ExecutionDetails() result = w.execution(execution) self.assertMultiLineEqual(result, "<h1>Details for execution '20130301-232425'</h1>\n" "<div class='execution'>\n" "<p>Started at 2013-03-01 23:24:25</p>\n" '<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_running">[RUNNING]</span>\n' '</div>\n' 'END OF TASK: "First task"\n' '</div>\n\n' "<p>Execution '20130301-232425' still running...</p>\n" '</div>\n' )
def test_execution(self) : execution = self.executionFixture() w = ExecutionDetails() result = w.execution(execution) self.assertMultiLineEqual(result, "<h1>Details for execution '20130301-232425'</h1>\n" "<div class='execution'>\n" "<p>Started at 2013-03-01 23:24:25</p>\n" '<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' "<p>Execution '20130301-232425' finalized with a <b>SUCCESS</b></p>\n" '</div>\n' )