Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_orientation_90(self):
img = base.Image.open(self._path_to_img("test-90.png"))
result = libtesseract.detect_orientation(img, lang='eng')
self.assertEqual(result['angle'], 90)
def test_orientation_0(self):
img = base.Image.open(self._path_to_img("test.png"))
result = libtesseract.detect_orientation(img, lang='eng')
self.assertEqual(result['angle'], 0)