def test_get_pid_and_inst_id(self):
        eng = se.SparkJobEngine(None)
        for job_id in [None, "", "@", "something", "pid@", "@instance"]:
            pid, inst_id = eng._get_pid_and_inst_id(job_id)
            self.assertEqual(("", ""), (pid, inst_id))

        pid, inst_id = eng._get_pid_and_inst_id("pid@instance")
        self.assertEqual(("pid", "instance"), (pid, inst_id))
Test parsing of job ids
dataset/ETHPy150Open openstack/sahara/sahara/tests/unit/service/edp/spark/base.py/TestSpark.test_get_pid_and_inst_id