equal
deleted
inserted
replaced
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) |