craftbeerpi4-pione/tests/test_system.py

15 lines
409 B
Python
Raw Normal View History

from aiohttp.test_utils import unittest_run_loop
from tests.cbpi_config_fixture import CraftBeerPiTestCase
2019-01-02 21:20:44 +01:00
class IndexTestCase(CraftBeerPiTestCase):
2019-01-02 21:20:44 +01:00
async def test_endpoints(self):
# Test Index Page
resp = await self.client.post(path="/system/restart")
assert resp.status == 200
resp = await self.client.post(path="/system/shutdown")
assert resp.status == 200