def METHOD_NAME(self):
    """
    Regression test that only top ``brightest`` objects are selected.
    """
    brightest = 40
    starfinder = IRAFStarFinder(threshold=7.0, fwhm=2, roundlo=-np.inf,
                                roundhi=np.inf, sharplo=-np.inf,
                                sharphi=np.inf, brightest=brightest)
    tbl = starfinder(DATA)
    assert len(tbl) == brightest