"""Test different server responses."""

import json

import moto.server as server
from moto import mock_aws


@mock_aws
def test_cloudtrail_list():
    backend = server.create_backend_app("cloudtrail")
    test_client = backend.test_client()

    headers = {
        "X-Amz-Target": "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListTrails"
    }
    res = test_client.post("/", headers=headers)
    data = json.loads(res.data)
    assert data == {"Trails": []}
