def METHOD_NAME(self):
    # The horizontal scrollbar should be shown/hidden according to
    # the 'wrap' setting: It should only be shown when 'wrap' is
    # set to NONE.
    # wrap = NONE -> with horizontal scrolling
    frame = self.make_frame(wrap=NONE)
    self.assertEqual(frame.text.cget('wrap'), NONE)
    self.assertIsNotNone(frame.xscroll)
    # wrap != NONE -> no horizontal scrolling
    for wrap in [CHAR, WORD]:
        with self.subTest(wrap=wrap):
            frame = self.make_frame(wrap=wrap)
            self.assertEqual(frame.text.cget('wrap'), wrap)
            self.assertIsNone(frame.xscroll)