def test_head(self):
        response = AboutTemplateView.as_view()(self.rf.head('/about/'))
        self.assertEqual(response.status_code, 200)
Test a TemplateView responds correctly to HEAD
dataset/ETHPy150Open django/django/tests/generic_views/test_base.py/TemplateViewTest.test_head