from django.test import TestCase

# Create your tests here.

@@ -3,58 +3,3198 @@
 om d
-jango.test import TestCase%0A%0A# Create your tests here.
+atetime import date, datetime, timedelta%0A%0Afrom django.test import TestCase%0Afrom django_date_validators import validators%0A%0A%0Aclass DateIsFutureTestCase(APITestCase):%0A    %22%22%22%0A    %22%22%22%0A    def setUp(self):%0A        self.past_date = date.today() - timedelta(days=1)%0A        self.present_date = date.today()%0A        self.future_date = date.today() + timedelta(days=1)%0A%0A    def test_valid(self):%0A        self.assertNotEqual(%0A            validators.date_is_future(self.past_date),%0A            True%0A        )%0A        self.assertNotEqual(%0A            validators.date_is_future(self.present_date),%0A            True%0A        )%0A        self.assertEqual(%0A            validators.date_is_future(self.future_date),%0A            True%0A        )%0A%0A%0Aclass DateIsPresentOrFutureTestCase(APITestCase):%0A    %22%22%22%0A    %22%22%22%0A    def setUp(self):%0A        self.past_date = date.today() - timedelta(days=1)%0A        self.present_date = date.today()%0A        self.future_date = date.today() + timedelta(days=1)%0A%0A    def test_valid(self):%0A        self.assertNotEqual(%0A            validators.date_is_future(self.past_date),%0A            True%0A        )%0A        self.assertEqual(%0A            validators.date_is_future(self.present_date),%0A            True%0A        )%0A        self.assertEqual(%0A            validators.date_is_future(self.future_date),%0A            True%0A        )%0A%0A%0Aclass DateIsPresentOrFutureTestCase(APITestCase):%0A    %22%22%22%0A    %22%22%22%0A    def setUp(self):%0A        self.past_date = date.today() - timedelta(days=1)%0A        self.present_date = date.today()%0A        self.future_date = date.today() + timedelta(days=1)%0A%0A    def test_valid(self):%0A        self.assertNotEqual(%0A            validators.date_is_present_or_future(self.past_date),%0A            True%0A        )%0A        self.assertEqual(%0A            validators.date_is_present_or_future(self.present_date),%0A            True%0A        )%0A        self.assertEqual(%0A            validators.date_is_present_or_future(self.future_date),%0A            True%0A        )%0A%0A%0Aclass DateIsPastTestCase(APITestCase):%0A    %22%22%22%0A    %22%22%22%0A    def setUp(self):%0A        self.past_date = date.today() - timedelta(days=1)%0A        self.present_date = date.today()%0A        self.future_date = date.today() + timedelta(days=1)%0A%0A    def test_valid(self):%0A        self.assertEqual(%0A            validators.date_is_past(self.past_date),%0A            True%0A        )%0A        self.assertNotEqual(%0A            validators.date_is_past(self.present_date),%0A            True%0A        )%0A        self.assertNotEqual(%0A            validators.date_is_past(self.future_date),%0A            True%0A        )%0A%0A%0Aclass DateIsPastOrPresentTestCase(APITestCase):%0A    %22%22%22%0A    %22%22%22%0A    def setUp(self):%0A        self.past_date = date.today() - timedelta(days=1)%0A        self.present_date = date.today()%0A        self.future_date = date.today() + timedelta(days=1)%0A%0A    def test_valid(self):%0A        self.assertEqual(%0A            validators.date_is_past_or_present(self.past_date),%0A            True%0A        )%0A        self.assertEqual(%0A            validators.date_is_past_or_present(self.present_date),%0A            True%0A        )%0A        self.assertNotEqual(%0A            validators.date_is_past_or_present(self.future_date),%0A            True%0A        )
 %0A

ADD initial tests