Пример #1
0
 def testSystemFailure(self):
     process = MockProcess(rc=1, lines=[])
     self.assertEqual(process.system(''), 1)
Пример #2
0
 def testSystemFailure(self):
     process = MockProcess(rc=1, lines=[])
     self.assertEqual(process.system(''), 1)
Пример #3
0
 def testSystemSuccess(self):
     process = MockProcess(rc=0, lines=[])
     self.assertEqual(process.system(''), 0)
Пример #4
0
 def testSystemSuccess(self):
     process = MockProcess(rc=0, lines=[])
     self.assertEqual(process.system(''), 0)