コード例 #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:")