def host_maintenance_mode(self, host, mode):
        if not mode:
            return 'off_maintenance'
        return 'on_maintenance'
Build up the request data into a bytearray.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/fake.py/FakeDriver.host_maintenance_mode--crossover with--dataset/ETHPy150Open sigmavirus24/requests-toolbelt/tests/test_dump.py/TestResponsePrivateFunctions.test_dump_request_data