def METHOD_NAME(self):
    """
    Tests listing of both old-style, deprecated checkers using .name
    attributes, and newer ones which use ._cc_spec and _cc_spec_version
    attributes
    """
    # hack: use argparse.Namespace to mock checker object with attributes
    # since SimpleNamespace is Python 3.3+ only
    CheckSuite.checkers.clear()
    # need to mock setuptools entrypoints here in order to load in checkers
    def checker_1():
        return Namespace(name="checker_1")
    def checker_2():
        return Namespace(_cc_spec="checker_2", _cc_spec_version="2.2")
    mock_checkers = [Namespace(resolve=checker_1), Namespace(resolve=checker_2)]
    with pytest.warns(DeprecationWarning):
        CheckSuite._load_checkers(mock_checkers)
    cs = CheckSuite()
    saved = sys.stdout
    try:
        # ugly!  consider refactoring to use py.test capsys
        fake_stdout = io.StringIO()
        sys.stdout = fake_stdout
        cs._print_suites()
        assert fake_stdout.getvalue() == " - checker_1:unknown\n - checker_2:2.2\n"
    finally:
        sys.stdout = saved
        fake_stdout.close()