def METHOD_NAME(self):
    args = sys.executable, '-m', 'json.tool'
    with Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE) as proc:
        out, err = proc.communicate(self.data.encode())
    self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
    self.assertEqual(err, b'')