示例#1
0
 def testFailureStepsText(self):
     self.build.getText = Mock(return_value=["step1", "step2"])
     self.assertEqual("BUILD FAILED: step1 step2\n", mail._defaultMessageSummary(self.build, FAILURE))
示例#2
0
 def testCancelled(self):
     self.build.getResponsibleUsers = Mock(return_value="Joe Bloggs")
     self.assertEqual("Build was cancelled by Joe Bloggs\n", mail._defaultMessageSummary(self.build, CANCELLED))
示例#3
0
 def testFailure(self):
     self.assertEqual("BUILD FAILED\n", mail._defaultMessageSummary(self.build, FAILURE))
示例#4
0
 def testWarnings(self):
     self.assertEqual("Build Had Warnings\n", mail._defaultMessageSummary(self.build, WARNINGS))
示例#5
0
 def testException(self):
     self.assertEqual("BUILD FAILED\n", mail._defaultMessageSummary(self.build, EXCEPTION))
示例#6
0
 def testFailureStepsText(self):
     self.build.getText = Mock(return_value=["step1", "step2"])
     self.assertEqual("BUILD FAILED: step1 step2\n",
                      mail._defaultMessageSummary(self.build, FAILURE))
示例#7
0
 def testSuccess(self):
     self.assertEqual("Build succeeded!\n", mail._defaultMessageSummary(self.build, SUCCESS))
示例#8
0
 def testFailure(self):
     self.assertEqual("BUILD FAILED\n",
                      mail._defaultMessageSummary(self.build, FAILURE))
示例#9
0
 def testCancelled(self):
     self.build.getResponsibleUsers = Mock(return_value="Joe Bloggs")
     self.assertEqual("Build was cancelled by Joe Bloggs\n",
                      mail._defaultMessageSummary(self.build, CANCELLED))
示例#10
0
 def testException(self):
     self.assertEqual("BUILD FAILED\n",
                      mail._defaultMessageSummary(self.build, EXCEPTION))
示例#11
0
 def testWarnings(self):
     self.assertEqual("Build Had Warnings\n",
                      mail._defaultMessageSummary(self.build, WARNINGS))
示例#12
0
 def testSuccess(self):
     self.assertEqual("Build succeeded!\n",
                      mail._defaultMessageSummary(self.build, SUCCESS))