def METHOD_NAME(self):
    matches = ['foo' * 10, 'bar' * 10, 'spams' * 10, 'zzz']
    longest_match_len = max(len(m) for m in matches)
    for width in (1, 10, 20, 30, 40, 50):
        f = cStringIO.StringIO()
        n = comp_ui._PrintPacked(matches, longest_match_len, width, 10, f)
        out = f.getvalue()
        lines = out.splitlines()
        max_len = max(len(line) for line in lines)
        print('WIDTH = %d' % width)
        print('reported lines = %d' % n)
        print('measured lines = %d' % len(lines))
        print('max_len = %d' % max_len)
        print('')