moto/tests/test_iot/test_server.py

21 lines
399 B
Python
Raw Normal View History

from __future__ import unicode_literals
import sure # noqa
import moto.server as server
from moto import mock_iot
2019-10-31 15:44:26 +00:00
"""
Test the different server responses
2019-10-31 15:44:26 +00:00
"""
@mock_iot
def test_iot_list():
backend = server.create_backend_app("iot")
test_client = backend.test_client()
# just making sure that server is up
2019-10-31 15:44:26 +00:00
res = test_client.get("/things")
res.status_code.should.equal(404)