def METHOD_NAME(self):
    input_ = '[1,\n2]'
    expect = '[1, 2]\n'
    args = sys.executable, '-m', 'json.tool', '--no-indent'
    process = subprocess.run(args, input=input_, capture_output=True, text=True, check=True)
    self.assertEqual(process.stdout, expect)
    self.assertEqual(process.stderr, '')