示例#1
0
 def testFailureProblemModeOldFailure(self):
     build = self.setUpBuild(FAILURE)
     self.assertEqual(
         "The Buildbot has detected a failed build", mail._defaultMessageIntro("problem", FAILURE, build)
     )
示例#2
0
 def testFailureChangeModeNewResult(self):
     build = self.setUpBuild(SUCCESS)
     self.assertEqual("The Buildbot has detected a new failure", mail._defaultMessageIntro("change", FAILURE, build))
示例#3
0
 def testFailureProblemModeNewFailure(self):
     build = self.setUpBuild(SUCCESS)
     self.assertEqual(
         "The Buildbot has detected a new failure", mail._defaultMessageIntro("problem", FAILURE, build)
     )
示例#4
0
 def testCancelled(self):
     build = self.setUpBuild()
     self.assertEqual("The Build was cancelled by the user", mail._defaultMessageIntro("all", CANCELLED, build))
示例#5
0
 def testFailureChangeModeFirstBuild(self):
     build = self.setUpBuild()
     self.assertEqual(
         "The Buildbot has detected a failed build", mail._defaultMessageIntro("change", FAILURE, build)
     )
示例#6
0
 def testSuccessChangeModeNewSuccess(self):
     build = self.setUpBuild(FAILURE)
     self.assertEqual("The Buildbot has detected a restored build",
                      mail._defaultMessageIntro("change", SUCCESS, build))
示例#7
0
 def testException(self):
     build = self.setUpBuild()
     self.assertEqual(
         "The Buildbot has detected a build exception", mail._defaultMessageIntro("all", EXCEPTION, build)
     )
示例#8
0
 def testFailureProblemModeNewFailure(self):
     build = self.setUpBuild(SUCCESS)
     self.assertEqual("The Buildbot has detected a new failure",
                      mail._defaultMessageIntro("problem", FAILURE, build))
示例#9
0
 def testFailureProblemModeOldFailure(self):
     build = self.setUpBuild(FAILURE)
     self.assertEqual("The Buildbot has detected a failed build",
                      mail._defaultMessageIntro("problem", FAILURE, build))
示例#10
0
 def testFailureChangeModeFirstBuild(self):
     build = self.setUpBuild()
     self.assertEqual("The Buildbot has detected a failed build",
                      mail._defaultMessageIntro("change", FAILURE, build))
示例#11
0
 def testFailureChangeModeNewResult(self):
     build = self.setUpBuild(SUCCESS)
     self.assertEqual("The Buildbot has detected a new failure",
                      mail._defaultMessageIntro("change", FAILURE, build))
示例#12
0
 def testCancelled(self):
     build = self.setUpBuild()
     self.assertEqual("The Build was cancelled by the user",
                      mail._defaultMessageIntro("all", CANCELLED, build))
示例#13
0
 def testException(self):
     build = self.setUpBuild()
     self.assertEqual("The Buildbot has detected a build exception",
                      mail._defaultMessageIntro("all", EXCEPTION, build))
示例#14
0
 def testSuccessChangeModeSuccessAgain(self):
     build = self.setUpBuild(SUCCESS)
     self.assertEqual("The Buildbot has detected a passing build",
                      mail._defaultMessageIntro("change", SUCCESS, build))
示例#15
0
 def testWarnings(self):
     build = self.setUpBuild()
     self.assertEqual(
         "The Buildbot has detected a problem in the build", mail._defaultMessageIntro("all", WARNINGS, build)
     )
示例#16
0
 def testSuccessChangeModeNewSuccess(self):
     build = self.setUpBuild(FAILURE)
     self.assertEqual(
         "The Buildbot has detected a restored build", mail._defaultMessageIntro("change", SUCCESS, build)
     )
示例#17
0
 def testSuccessChangeModeFirstBuild(self):
     build = self.setUpBuild()
     self.assertEqual(
         "The Buildbot has detected a passing build", mail._defaultMessageIntro("change", SUCCESS, build)
     )
示例#18
0
 def testWarnings(self):
     build = self.setUpBuild()
     self.assertEqual("The Buildbot has detected a problem in the build",
                      mail._defaultMessageIntro("all", WARNINGS, build))