def test_cmdline(self):
        out = sh('procstat -c %s' % self.pid)
        self.assertEqual(' '.join(psutil.Process(self.pid).cmdline()),
                         ' '.join(out.split('\n')[1].split()[2:]))
dataset/ETHPy150Open giampaolo/psutil/psutil/tests/test_bsd.py/FreeBSDSpecificTestCase.test_cmdline/original