コード例 #1
0
	def test_execution_running(self) :
		s = self.setUpProject()
		self.setUpClient("myclient")
		self.setUpExecution("myclient", "20130304-050607", running=True)
		w = ProjectHistory()
		result = w.execution(s, "myproject", "myclient", "20130304-050607")
		self.assertMultiLineEqual(result,
			'<a href="details-myclient-20130304-050607.html"\n'
			'	title="Running. Click to see the details"\n'
			'	class="executionbubble running">\n'
			"<div>myclient :: brief description</div>\n"
			"<div><b>Started:</b> 2013/03/04 05:06:07</div>\n"
			"<div>in progress...</div>\n"
			'</a>\n'
			)
コード例 #2
0
	def test_execution_running(self) :
		s = self.setUpProject()
		self.setUpClient("myclient")
		self.setUpExecution("myclient", "20130304-050607", running=True)
		w = ProjectHistory()
		result = w.execution(s, "myproject", "myclient", "20130304-050607")
		self.assertMultiLineEqual(result,
			'<a href="details-myclient-20130304-050607.html"\n'
			'	title="Running. Click to see the details"\n'
			'	class="executionbubble running">\n'
			"<div>myclient :: brief description</div>\n"
			"<div><b>Started:</b> 2013/03/04 05:06:07</div>\n"
			"<div>in progress...</div>\n"
			'</a>\n'
			)
コード例 #3
0
	def test_execution_red(self) :
		s = self.setUpProject()
		self.setUpClient("myclient")
		self.setUpExecution("myclient", "20130304-050607", ok=False)
		w = ProjectHistory()
		result = w.execution(s, "myproject", "myclient", "20130304-050607")
		self.assertMultiLineEqual(result,
			'<a href="details-myclient-20130304-050607.html"\n'
			'	title="Broken. Click to see the details"\n'
			'	class="executionbubble broken">\n'
			"<div>myclient :: brief description</div>\n"
			"<div><b>Started:</b> 2013/03/04 05:06:07</div>\n"
			"<div><b>Finished:</b> 2013/04/05 06:07:08</div>\n"
			'</a>\n'
			)
コード例 #4
0
	def test_execution_red(self) :
		s = self.setUpProject()
		self.setUpClient("myclient")
		self.setUpExecution("myclient", "20130304-050607", ok=False)
		w = ProjectHistory()
		result = w.execution(s, "myproject", "myclient", "20130304-050607")
		self.assertMultiLineEqual(result,
			'<a href="details-myclient-20130304-050607.html"\n'
			'	title="Broken. Click to see the details"\n'
			'	class="executionbubble broken">\n'
			"<div>myclient :: brief description</div>\n"
			"<div><b>Started:</b> 2013/03/04 05:06:07</div>\n"
			"<div><b>Finished:</b> 2013/04/05 06:07:08</div>\n"
			'</a>\n'
			)