Пример #1
0
 def test_pid(self):
     p = sh.true()
     self.assert_(p.pid>0)
Пример #2
0
 def test_pid(self):
     p = sh.true()
     self.assert_(p.pid > 0)
Пример #3
0
 def test_rc(self):
     p = sh.true()
     self.assertEqual(p.retcode, 0)
     p = sh.false()
     self.assertEqual(p.retcode, 1)
Пример #4
0
 def test_rc(self):
     p = sh.true()
     self.assertEqual(p.retcode, 0)
     p = sh.false()
     self.assertEqual(p.retcode, 1)