def testSystemFailure(self): process = MockProcess(rc=1, lines=[]) self.assertEqual(process.system(''), 1)
def testSystemSuccess(self): process = MockProcess(rc=0, lines=[]) self.assertEqual(process.system(''), 0)