moto/tests/test_guardduty/test_server.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
369 B
Python
Raw Normal View History

2021-12-07 12:10:43 +00:00
import json
import moto.server as server
def test_create_without_enable_option():
backend = server.create_backend_app("guardduty")
test_client = backend.test_client()
body = {"enable": "True"}
response = test_client.post("/detector", data=json.dumps(body))
assert response.status_code == 200
assert "detectorId" in json.loads(response.data)