hydrus/include/TestHydrusImageHandling.py

17 lines
414 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' )
self.assertEqual( phash, 'a2088220080a2808'.decode( 'hex' ) )