def testTakeScreenshot(self):
        buf = self.uiAutomatorHelper.takeScreenshot()
        self.assertIsNotNone(buf)
        self.assertTrue(0 > len(buf))
        image = Image.open(cStringIO.StringIO(buf))
        self.assertIsNotNone(image)
        self.assertEqual(image.format, 'PNG')
dataset/ETHPy150Open dtmilano/AndroidViewClient/tests/com/dtmilano/android/uiautomator/uiautomatorhelpertests.py/UiAutomatorHelperTests.testTakeScreenshot/swapped operands of `>`