示例#1
0
 def test_devices_p(self):
     result = adb.devices()
     #don't check output code in result but presence of "device" string
     self.assertRegexpMatches(result[1], '\\tdevice')
示例#2
0
 def test_devices_p_l_option(self):
     result = adb.devices('-l')
     self.assertRegexpMatches(result[1], 'model:')
示例#3
0
 def test_devices_l_option(self):
     result = adb.devices('-l')
     self.assertRegexpMatches(result[1], 'model:')
示例#4
0
 def test_devices(self):
     result = adb.devices()
     #don't check output code in result but presence of "device" string
     self.assertRegexpMatches(result[1], '\\tdevice')
示例#5
0
 def test_devices_w_opt(self):
     opts = ["-l"]
     result = adb.devices(opts)
     result[1].should.match(r'model:')
示例#6
0
 def test_devices(self):
     result = adb.devices()
     # don't check output code in result but presence of "device" string
     result[1].should.match(r'\tdevice')
示例#7
0
 def test_devices_p_l_option(self):
     result = adb.devices("-l")
     self.assertRegexpMatches(result[1], "model:")