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')
def test_devices_p_l_option(self): result = adb.devices('-l') self.assertRegexpMatches(result[1], 'model:')
def test_devices_l_option(self): result = adb.devices('-l') self.assertRegexpMatches(result[1], 'model:')
def test_devices(self): result = adb.devices() #don't check output code in result but presence of "device" string self.assertRegexpMatches(result[1], '\\tdevice')
def test_devices_w_opt(self): opts = ["-l"] result = adb.devices(opts) result[1].should.match(r'model:')
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')
def test_devices_p_l_option(self): result = adb.devices("-l") self.assertRegexpMatches(result[1], "model:")