def test_check_output_success(self):
     adb_process = adbprocess.AdbProcess()
     try:
         output = adb_process.check_output('devices')
         self.assertIsNotNone(output)
     except subprocess.CalledProcessError:
         self.fail('Failed, CalledProcessError raised')
 def test_check_output_failure(self):
     adb_process = adbprocess.AdbProcess()
     with self.assertRaises(subprocess.CalledProcessError):
         adb_process.check_output('invalid4r4j838r')
 def test_check_call_success(self):
     adb_process = adbprocess.AdbProcess()
     res = adb_process.check_call('devices')
     self.assertEqual(res, 0)
 def test_call_failure(self):
     adb_process = adbprocess.AdbProcess()
     res = adb_process.call('invalid4r4j838r')
     self.assertNotEqual(res, 0)
 def test_check_call_failure(self):
     """Check for check call process failed"""
     adb_process = adbprocess.AdbProcess()
     with self.assertRaises(subprocess.CalledProcessError):
         adb_process.check_call('invalid4r4j838r')
 def test_check_call_success(self):
     """Check for check call process success"""
     adb_process = adbprocess.AdbProcess()
     res = adb_process.check_call('devices')
     self.assertEqual(res, 0)
 def test_call_failure(self):
     """Check for call process failed"""
     adb_process = adbprocess.AdbProcess()
     res = adb_process.call('invalid4r4j838r')
     self.assertNotEqual(res, 0)