#NEWLINE# def test_mid_range_distance( self ) : #NEWLINE# #INDENT# seq1 = Sequence ( 'abcdefgh' ) #NEWLINE# seq2 = Sequence ( '1b23ef45' ) #NEWLINE# distance = hamming ( seq1 , distance ) #NEWLINE# self . assertEqual ( distance , ( 5.0 / 8.0 ) )