#NEWLINE# def test_one_insert_homogenous_sequence( self ) : #NEWLINE# #INDENT# seq1 = ( 'b' * 200 ) #NEWLINE# seq2 = ( 'a' + ( 'b' * 200 ) ) #NEWLINE# sm = difflib . SequenceMatcher ( None , seq1 , seq2 ) #NEWLINE# self . assertAlmostEqual ( sm . ratio ( ) , 0 , places = 3 ) #NEWLINE# self . assertEqual ( sm . bpopular , { 'b' } ) #NEWLINE# sm = difflib . SequenceMatcher ( None , seq2 , seq2 , autojunk = False ) #NEWLINE# self . assertAlmostEqual ( sm . ratio ( ) , 0.9975 , places = 3 ) #NEWLINE# self . assertEqual ( sm . bpopular , set ( ) )