Esempio n. 1
0
 def test_unquote_message(self):
     self.assertTrue(exitcode.unquote_message(" "), " ")
     self.assertTrue(exitcode.unquote_message("+"), " ")
     self.assertTrue(exitcode.unquote_message("\\+"), "+")
     self.assertTrue(exitcode.unquote_message("\\"), "\\")
     self.assertTrue(exitcode.unquote_message("hello\\"), "hello\\")
     self.assertTrue(exitcode.unquote_message("hello\\n"), "hello\\n")
     self.assertTrue(exitcode.unquote_message("hello+world"), "hello world")
     self.assertTrue(exitcode.unquote_message("hello world"), "hello world")
Esempio n. 2
0
 def test_unquote_message(self):
     self.assertTrue(exitcode.unquote_message(" "), " ")
     self.assertTrue(exitcode.unquote_message("+"), " ")
     self.assertTrue(exitcode.unquote_message("\\+"), "+")
     self.assertTrue(exitcode.unquote_message("\\"), "\\")
     self.assertTrue(exitcode.unquote_message("hello\\"), "hello\\")
     self.assertTrue(exitcode.unquote_message("hello\\n"), "hello\\n")
     self.assertTrue(exitcode.unquote_message("hello+world"), "hello world")
     self.assertTrue(exitcode.unquote_message("hello world"), "hello world")