hydrus/include/TestHydrusImageHandling.py

17 lines
411 B
Python
Raw Normal View History

2014-05-07 22:42:30 +00:00
import collections
import HydrusConstants as HC
import HydrusImageHandling
import os
import TestConstants
import unittest
import wx
class TestImageHandling( unittest.TestCase ):
def test_phash( self ):
phash = HydrusImageHandling.GeneratePerceptualHash( HC.STATIC_DIR + os.path.sep + 'hydrus.png' )
2014-06-11 21:20:42 +00:00
self.assertEqual( phash, '\xb0\x08\x83\xb2\x08\x0b8\x08' )
2014-05-07 22:42:30 +00:00