Пример #1
0
 def testSafeFormatter(self):
     successful = StringProcessor.safe_formatter("This is a %s message.",
                                                 "successful")
     self.assertEquals(successful, "This is a successful message.")
Пример #2
0
 def testSafeFormatterMessageNull(self):
     string = StringProcessor.safe_formatter(None, "Message", "String",
                                             "Null")
     self.assertEquals(string,
                       "Message: null Arguments: Message String Null ")