tests/test-hybridencode.py
changeset 51700 7f0cb9ee0534
parent 51690 493034cc3265
child 51703 ca7bde5dbafb
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
     3 from mercurial import store
     3 from mercurial import store
     4 
     4 
     5 
     5 
     6 class hybridencodetests(unittest.TestCase):
     6 class hybridencodetests(unittest.TestCase):
     7     def hybridencode(self, input, want):
     7     def hybridencode(self, input, want):
       
     8 
     8         # Check the C implementation if it's in use
     9         # Check the C implementation if it's in use
     9         got = store._pathencode(input)
    10         got = store._pathencode(input)
    10         self.assertEqual(want, got)
    11         self.assertEqual(want, got)
    11         # Check the reference implementation in Python
    12         # Check the reference implementation in Python
    12         refgot = store._hybridencode(input, True)
    13         refgot = store._hybridencode(input, True)