def test_defaultHEAD(self):
        """
        When not otherwise overridden, L{Resource.render} treats a I{HEAD}
        request as if it were a I{GET} request.
        """
        expected = b"insert response here"
        request = DummyRequest([])
        request.method = b'HEAD'
        resource = BytesReturnedRenderable(expected)
        self.assertEqual(expected, resource.render(request))

        When not otherwise overridden, L{Resource.render} treats a I{HEAD}
        request as if it were a I{GET} request.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_resource.py