1
mirror of https://github.com/home-assistant/core synced 2024-09-18 19:55:20 +02:00
ha-core/tests/helpers/test_system_info.py
Paulus Schoutsen 4de97abc3a Black
2019-07-31 12:25:30 -07:00

13 lines
378 B
Python

"""Tests for the system info helper."""
import json
from homeassistant.const import __version__ as current_version
async def test_get_system_info(hass):
"""Test the get system info."""
info = await hass.helpers.system_info.async_get_system_info()
assert isinstance(info, dict)
assert info["version"] == current_version
assert json.dumps(info) is not None