class QuestionModelTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() returns False for questions whose
pub_date
is in the future.
"""
time = timezone.now() + datetime.timedelta(days=30)
future_question = Question(pub_date=time)
self.assertIs(future_question.was_published_recently(), False)
in very confusing ways.
--
Ticket URL: <https://code.djangoproject.com/ticket/32700>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
Duplicate of https://github.com/django/djangoproject.com/issues/662
(but technically invalid as this is the wrong issue tracker for the issue)
--
Ticket URL: <https://code.djangoproject.com/ticket/32700#comment:1>