# Path: conference/cfp/views.py
# def is_cfp_closed(closing_date):
#     cfp_closing_date = datetime.datetime.strptime(closing_date, '%Y-%m-%d')
#     return cfp_closing_date.date() <= datetime.date.today()


import datetime
from django.test import TestCase
from .views import is_cfp_closed




class CFP_TestCases(TestCase):
    def test_closing_date_tomorrow(self):
        test_date = datetime.date.today() + datetime.timedelta(days=1)
        self.assertFalse(is_cfp_closed(test_date.strftime("%Y-%m-%d")))

    def test_closing_date_same_date(self):
        test_date = datetime.date.today()

# Path: conference/cfp/views.py
# def is_cfp_closed(closing_date):
#     cfp_closing_date = datetime.datetime.strptime(closing_date, '%Y-%m-%d')
#     return cfp_closing_date.date() <= datetime.date.today()


# Path: conference/cfp/tests.py
import datetime
from django.test import TestCase
from .views import is_cfp_closed





class CFP_TestCases(TestCase):
    def test_closing_date_tomorrow(self):
        test_date = datetime.date.today() + datetime.timedelta(days=1)
        self.assertFalse(is_cfp_closed(test_date.strftime("%Y-%m-%d")))

    def test_closing_date_same_date(self):
        test_date = datetime.date.today()

        self.assertTrue(is_cfp_closed(test_date.strftime("%Y-%m-%d")))