from django.test import TestCase

# Create your tests here.

@@ -1,60 +1,509 @@
-from django.test import TestCase%0A%0A# Create your tests here.
+import datetime%0A%0Afrom django.utils import timezone%0Afrom django.test import TestCase%0A%0Afrom .models import Question%0A%0Aclass QuestionMethodTest(TestCase):%0A%0A  def test_was_published_recently_with_future_question(self):%0A    %22%22%22%0A    was_published_recenlty() should return False for questions that the%0A    pub_date is in the future%0A    %22%22%22%0A    time = timezone.now() + datetime.timedelta(days = 30)%0A    future_question = Question(pub_date = time)%0A    self.assertEqual(future_question_was_published_recently(), False)%0A
 %0A

Test case for Question method added