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_0(self):
img = base.Image.open(self._path_to_img("test.png"))
result = tesseract.detect_orientation(img, lang='eng')
self.assertEqual(result['angle'], 0)
def test_orientation_90(self):
img = base.Image.open(self._path_to_img("test-90.png"))
result = tesseract.detect_orientation(img, lang='eng')
self.assertEqual(result['angle'], 90)