def make_test(row):
    """
    Generate a test method
    """

    def row_test(self):
        actual = row.get("_actual")
        if actual in ("P", "F"):
            if actual == "P":
                self.assertMeansTest("eligible", row)
            else:
                self.assertMeansTest("ineligible", row)

    row_test.__doc__ = str(row.get("line_number")) + ": " + row.get("_description")
    return row_test