示例#1
0
 def test_backslash_dequote_string(self):
     self.assertEqual(backslash_dequote('\\ foo\\ bar\\#baz\\&'), ' foo bar#baz&')
示例#2
0
 def test_backslash_dequote_unknown_char(self):
     self.assertEqual(backslash_dequote('\\€'), '\\€') # NB: not dequoted
示例#3
0
 def test_backslash_dequote(self):
     self.assertEqual(backslash_dequote(''), '')
     self.assertEqual(backslash_dequote(' '), ' ')
     self.assertEqual(backslash_dequote('\\ '), ' ')
     self.assertEqual(backslash_dequote('a'), 'a')
     self.assertEqual(backslash_dequote('\\@'), '@')