def test_allHeadersCallback(self):
        called = []
        header, protocol = self._headerTestSetup()
        def allHeadersReceived():
            called.append(protocol.state)
            protocol.state = STATUS
        protocol.allHeadersReceived = allHeadersReceived
        protocol.dataReceived(self.sep)
        self.assertEqual(called, [HEADER])
        self.assertEqual(protocol.state, STATUS)
The operation to power off (stop) a virtual machine.
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/_HTTPParserTests.test_allHeadersCallback--crossover with--dataset/ETHPy150Open Azure/azure-sdk-for-python/azure-mgmt-compute/azure/mgmt/compute/operations/virtual_machines_operations.py/VirtualMachinesOperations.power_off