def test_executionTable_twoSameDay(self) :
		s = self.setUpProject()
		self.setUpClient("client 1")
		self.setUpClient("client 2")
		self.setUpExecution("client 1", "20130304-050607", running=True)
		self.setUpExecution("client 2", "20130304-050607", running=True)

		w = ProjectHistory()
		result = w.executionTable(s, "myproject")
		self.assertMultiLineEqual(result,
			'<tr><td colspan="2">2013/03/04</td></tr>\n'
			'<tr>\n'
			'<td>\n'
			'<a href="details-client 1-20130304-050607.html"\n'
			'	title="Running. Click to see the details"\n'
			'	class="executionbubble running">\n'
			'<div>client 1 :: brief description</div>\n'
			'<div><b>Started:</b> 2013/03/04 05:06:07</div>\n'
			'<div>in progress...</div>\n'
			'</a>\n'
			'</td>\n'
			'<td>\n'
			'<a href="details-client 2-20130304-050607.html"\n'
			'	title="Running. Click to see the details"\n'
			'	class="executionbubble running">\n'
			'<div>client 2 :: brief description</div>\n'
			'<div><b>Started:</b> 2013/03/04 05:06:07</div>\n'
			'<div>in progress...</div>\n'
			'</a>\n'
			'</td>\n'
			'</tr>\n'
			)
예제 #2
0
	def test_executionTable_twoSameDay(self) :
		s = self.setUpProject()
		self.setUpClient("client 1")
		self.setUpClient("client 2")
		self.setUpExecution("client 1", "20130304-050607", running=True)
		self.setUpExecution("client 2", "20130304-050607", running=True)

		w = ProjectHistory()
		result = w.executionTable(s, "myproject")
		self.assertMultiLineEqual(result,
			'<tr><td colspan="2">2013/03/04</td></tr>\n'
			'<tr>\n'
			'<td>\n'
			'<a href="details-client 1-20130304-050607.html"\n'
			'	title="Running. Click to see the details"\n'
			'	class="executionbubble running">\n'
			'<div>client 1 :: brief description</div>\n'
			'<div><b>Started:</b> 2013/03/04 05:06:07</div>\n'
			'<div>in progress...</div>\n'
			'</a>\n'
			'</td>\n'
			'<td>\n'
			'<a href="details-client 2-20130304-050607.html"\n'
			'	title="Running. Click to see the details"\n'
			'	class="executionbubble running">\n'
			'<div>client 2 :: brief description</div>\n'
			'<div><b>Started:</b> 2013/03/04 05:06:07</div>\n'
			'<div>in progress...</div>\n'
			'</a>\n'
			'</td>\n'
			'</tr>\n'
			)