Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(206275)

Delta Between Two Patch Sets: Lib/test/test_json/test_tool.py

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 9 months ago
Right Patch Set: Created 3 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_io.py ('k') | Lib/test/test_keyword.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 import os 1 import os
2 import sys 2 import sys
3 import textwrap 3 import textwrap
4 import unittest 4 import unittest
5 import subprocess 5 import subprocess
6 from test import support 6 from test import support
7 from test.support.script_helper import assert_python_ok 7 from test.support.script_helper import assert_python_ok
8 8
9 9
10 class TestTool(unittest.TestCase): 10 class TestTool(unittest.TestCase):
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 self.assertTrue(out.startswith(b'usage: ')) 100 self.assertTrue(out.startswith(b'usage: '))
101 self.assertEqual(err, b'') 101 self.assertEqual(err, b'')
102 102
103 def test_sort_keys_flag(self): 103 def test_sort_keys_flag(self):
104 infile = self._create_infile() 104 infile = self._create_infile()
105 rc, out, err = assert_python_ok('-m', 'json.tool', '--sort-keys', infile ) 105 rc, out, err = assert_python_ok('-m', 'json.tool', '--sort-keys', infile )
106 self.assertEqual(rc, 0) 106 self.assertEqual(rc, 0)
107 self.assertEqual(out.splitlines(), 107 self.assertEqual(out.splitlines(),
108 self.expect_without_sort_keys.encode().splitlines()) 108 self.expect_without_sort_keys.encode().splitlines())
109 self.assertEqual(err, b'') 109 self.assertEqual(err, b'')
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+