class_docstr: Tests for the autojunk parameter added in 2.7
class_docstr_tok: ["Tests","for","the","autojunk","parameter","added","in","2.7"]
code: def test_one_insert_homogenous_sequence(self):
      # By default autojunk=True and the heuristic kicks in for a sequence
      # of length 200+
      seq1 = "b" * 200
      seq2 = "a" + "b" * 200
  
      sm = difflib.SequenceMatcher(None, seq1, seq2)
      self.assertAlmostEqual(sm.ratio(), 0, places=3)
      self.assertEqual(sm.bpopular, {"b"})
  
      # Now turn the heuristic off
      sm = difflib.SequenceMatcher(None, seq1, seq2, autojunk=False)
      self.assertAlmostEqual(sm.ratio(), 0.9975, places=3)
      self.assertEqual(sm.bpopular, set())
  
imports: import difflib
  from test.support import findfile
  import unittest
  import doctest
  import sys
label_desc: Use image node_id 1 for calling the TestAutojunk obj's underlying member method code with example usage: obj.test_one_insert_homogenous_sequence() without return types