def test_allHeadersCallback(self):
        called = []
        header, protocol = self._headerTestSetup()
        def allHeadersReceived():
            called.append(protocol.state)
            protocol.state = STATUS
        protocol.allHeadersReceived = allHeadersReceived
        protocol.dataReceived('\r\n')
        self.assertEqual(called, [HEADER])
        self.assertEqual(protocol.state, STATUS)
Create an IIS binding.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/HTTPParserTests.test_allHeadersCallback--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/win_iis.py/create_binding