#NEWLINE# def test_differing_length_seqs( self ) : #NEWLINE# #INDENT# seq1 = Sequence ( 'AGAAATCTGAGCAAGGATCA' ) #NEWLINE# seq2 = Sequence ( 'TTAGTGCGTAATCCG' ) #NEWLINE# obs = kmer_distance ( seq1 , seq2 , 3 ) #NEWLINE# exp = 0.9285714285714286 #NEWLINE# self . assertAlmostEqual ( obs , exp )