MCPcopy Index your code
hub / github.com/python/cpython / test_tab

Method test_tab

Lib/test/test_json/test_tool.py:200–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198
199 @force_not_colorized
200 def test_tab(self):
201 input_ = '[1, 2]'
202 expect = '[\n\t1,\n\t2\n]\n'
203 args = sys.executable, '-m', self.module, '--tab'
204 process = subprocess.run(args, input=input_, capture_output=True, text=True, check=True)
205 self.assertEqual(process.stdout, expect)
206 self.assertEqual(process.stderr, '')
207
208 @force_not_colorized
209 def test_compact(self):

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected