def METHOD_NAME(self):
    titles = [
        "Freshman",
        "Sophomore",
        "Junior",
        "Senior",
        "First-year",
        "Second-year",
    ]
    for title in titles:
        Year.objects.create(name=title)
    this_year = datetime.datetime.now().year
    # ensure graduation years are in a reasonable range
    for title in titles:
        year = Year.objects.get(name=title).year
        self.assertLessEqual(abs(year - this_year), 10)