def test_now_to_1_year(self, run_in_various_years):
        # The following two tests test the span from "now" to "a year from
        # now".  Depending on when the test is run, the interval may include a
        # leap year.  The 'try' assumes it's not a leap year, the 'except'
        # tries it again as a leap year.
        try:
            assert dtw(0, 31536000) == "1 year"
            assert dtw(1, 31536001) == "1 year"
        except __HOLE__:  # If the intervening year contains February 29th
            assert dtw(0, 31536000) == "11 months and 30 days" 
            assert dtw(1, 31536001) == "11 months and 30 days"
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/tests/test_date.py/TestDistanceOfTimeInWords.test_now_to_1_year