def METHOD_NAME(self, test_client):
    request_data = {**TEST_FW_PAYLOAD, 'binary': 'invalid_base64'}
    result = test_client.put('/rest/firmware', json=request_data).json
    assert 'Could not parse binary (must be valid base64!)' in result['error_message']