def test_not_before(): current_year = datetime.datetime.today().year assert not_before("%d-01-01T00:00:00Z" % (current_year + 1)) == False assert not_before("%d-01-01T00:00:00Z" % (current_year - 1)) == True