Пример #1
0
 def testProcessResultFieldNoOutputOptions(self):
     x = conkyhudson.processResultField({"result": "SUCCESS",
                                         "building":"false"}, None)
     self.assertEquals("SUCCESS", x)
     x = conkyhudson.processResultField({"result": "FAILURE",
                                         "building":False}, None)
     self.assertEquals("FAILURE", x)
     x = conkyhudson.processResultField({"result": None,
                                         "building":True}, None)
     self.assertEquals("Building...", x)
     x = conkyhudson.processResultField({"result": None,
                                         "building":False}, None)
     self.assertEquals("No status", x)
Пример #2
0
 def testProcessResultField(self):
     x = conkyhudson.processResultField({"result": "SUCCESS",
                                         "building":"false"}, "a,b,c")
     self.assertEquals("a", x)