def test(self):
    sample_cmd = "sleep 20; true"
    pid = subprocess.Popen(sample_cmd, shell=True).pid
    cmdline = utils.GetProcCmdline(pid)
    # As the popen will quote and pass on the sample_cmd, it should be returned
    # by the function as an element in the list of arguments
    self.assertTrue(cmdline in sample_cmd)
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.utils.process_unittest.py/GetCmdline.test/swapped operands of `in`