def test_4(self): result = day8.encode_chars(r'"\x27"') expect = r'"\"\\x27\""' print 'Expect: %r' % expect print 'Result: %r' % result self.assertEqual(expect, result)
def test_3(self): result = day8.encode_chars(r'"aaa\"aaa"') expect = r'"\"aaa\\\"aaa\""' print 'Expect: %r' % expect print 'Result: %r' % result self.assertEqual(expect, result)