Show More
@@ -14,12 +14,12 b' from mercurial import (' | |||
|
14 | 14 | class SSHServerGetArgsTests(unittest.TestCase): |
|
15 | 15 | def testparseknown(self): |
|
16 | 16 | tests = [ |
|
17 | ('* 0\nnodes 0\n', ['', {}]), | |
|
18 | ('* 0\nnodes 40\n1111111111111111111111111111111111111111\n', | |
|
19 | ['1111111111111111111111111111111111111111', {}]), | |
|
17 | (b'* 0\nnodes 0\n', [b'', {}]), | |
|
18 | (b'* 0\nnodes 40\n1111111111111111111111111111111111111111\n', | |
|
19 | [b'1111111111111111111111111111111111111111', {}]), | |
|
20 | 20 | ] |
|
21 | 21 | for input, expected in tests: |
|
22 | self.assertparse('known', input, expected) | |
|
22 | self.assertparse(b'known', input, expected) | |
|
23 | 23 | |
|
24 | 24 | def assertparse(self, cmd, input, expected): |
|
25 | 25 | server = mockserver(input) |
General Comments 0
You need to be logged in to leave comments.
Login now