예제 #1
0
 def test_backslash_quote_string(self):
     self.assertEqual(backslash_quote(' foo bar#baz&'), '\\ foo\\ bar\\#baz\\&')
예제 #2
0
 def test_backslash_quote_unknown_char(self):
     self.assertEqual(backslash_quote('€'), '€')
예제 #3
0
 def test_backslash_quote(self):
     self.assertEqual(backslash_quote(''), '')
     self.assertEqual(backslash_quote(' '), '\\ ')
     self.assertEqual(backslash_quote('a'), 'a')
     self.assertEqual(backslash_quote('@'), '\\@')