def METHOD_NAME(capsys):
    showtable.main(
        [
            os.path.join(ASCII_ROOT, "data/cds2.dat"),
            "--format",
            "ascii.cds",
            "--max-lines",
            "7",
            "--max-width",
            "30",
        ]
    )
    out, err = capsys.readouterr()
    assert out.splitlines() == [
        "      SST       ... Note",
        "                ...     ",
        "--------------- ... ----",
        "041314.1+281910 ...   --",
        "            ... ...  ...",
        "044427.1+251216 ...   --",
        "044642.6+245903 ...   --",
        "Length = 215 rows",
    ]