#NEWLINE# def test_check_adb_devices_specified_device_not_found( self ) : #NEWLINE# #INDENT# build_environment = android . BuildEnvironment ( android . BuildEnvironment . build_defaults ( ) ) #NEWLINE# build_environment . sdk_home = 'sdk_home' #NEWLINE# os . path . exists = ( lambda unused_filename : True ) #NEWLINE# build_environment . run_subprocess = common_test . RunCommandMock ( build_environment , args = ( '%s devices -l' % build_environment . _find_binary ( android . BuildEnvironment . ADB ) ) , stdout = 'List of devices attached\n06d8bd43               device usb:2-3.3 product:razor model:Nexus_7 device:flo\n98aaffe123             device usb:2-3.3 product:fishy model:Nexus_55 device:jelly\n' , shell = True ) #NEWLINE# with self . assertRaises ( common . AdbError ) : #NEWLINE# #INDENT# build_environment . check_adb_devices ( '0000' )