docstr: Make sure user configuration is respected (SPARK-19307)
docstr_tok: ["Make","sure","user","configuration","is","respected","(","SPARK-19307",")"]
code: def test_user_configuration(self):
      """Make sure user configuration is respected (SPARK-19307)"""
      script = self.createTempFile(
          "test.py",
          """
              |from pyspark import SparkConf, SparkContext
              |
              |conf = SparkConf().set("spark.test_config", "1")
              |sc = SparkContext(conf = conf)
              |try:
              |    if sc._conf.get("spark.test_config") != "1":
              |        raise RuntimeError("Cannot find spark.test_config in SparkContext's conf.")
              |finally:
              |    sc.stop()
              """,
      )
      proc = subprocess.Popen(
          self.sparkSubmit + ["--master", "local", script],
          stdout=subprocess.PIPE,
          stderr=subprocess.STDOUT,
      )
      out, err = proc.communicate()
      self.assertEqual(
          0,
          proc.returncode,
          msg="Process failed with error:\n {0}".format(out),
      )
  
imports: import os
  import re
  import shutil
  import subprocess
  import tempfile
  import unittest
  import zipfile
  from pyspark.testing.utils import SPARK_HOME
label_desc: Use image node_id 13 for calling the SparkSubmitTests obj's underlying member method code with example usage: obj.test_user_configuration() without return types