( self )
| 74 | self.assertEqual( h, h2 ) |
| 75 | |
| 76 | def testFromString( self ) : |
| 77 | |
| 78 | h = IECore.MurmurHash() |
| 79 | h.append( 1 ) |
| 80 | h.append( "hello" ) |
| 81 | |
| 82 | s = h.toString() |
| 83 | hs = IECore.MurmurHash.fromString( s ) |
| 84 | self.assertEqual( h, hs ) |
| 85 | |
| 86 | with self.assertRaisesRegex( Exception, ".*must have 32 characters.*" ) : |
| 87 | IECore.MurmurHash.fromString( "InvalidStringRepresentation" ) |
| 88 | |
| 89 | def testAppend( self ) : |
| 90 |
nothing calls this directly
no test coverage detected