def test_noHeaderCallback(self):
        """
        If there are no headers in the message, L{HTTPParser} does not call
        C{headerReceived}.
        """
        header, protocol = self._headerTestSetup()
        protocol.dataReceived(self.sep)
        self.assertEqual(header, {})
        self.assertEqual(protocol.state, BODY)

        If there are no headers in the message, L{HTTPParser} does not call
        C{headerReceived}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_newclient.py