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

Method test_no_indent

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

Source from the content-addressed store, hash-verified

189
190 @force_not_colorized
191 def test_no_indent(self):
192 input_ = '[1,\n2]'
193 expect = '[1, 2]\n'
194 args = sys.executable, '-m', self.module, '--no-indent'
195 process = subprocess.run(args, input=input_, capture_output=True, text=True, check=True)
196 self.assertEqual(process.stdout, expect)
197 self.assertEqual(process.stderr, '')
198
199 @force_not_colorized
200 def test_tab(self):

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected