from datetime import date
from django.test import SimpleTestCase
from django.template.loader import render_to_string


class FooterTemplateTest(SimpleTestCase):
    def test_footer_shows_current_year(self):
        rendered = render_to_string("core/_partials/_footer.html")
        self.assertIn(str(date.today().year), rendered)
