moto/tests/test_es/test_server.py

13 lines
291 B
Python
Raw Normal View History

2021-12-20 12:51:59 +00:00
import json
import moto.server as server
def test_es_list():
backend = server.create_backend_app("es")
test_client = backend.test_client()
resp = test_client.get("/2015-01-01/domain")
assert resp.status_code == 200
assert json.loads(resp.data) == {"DomainNames": []}