mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-21 11:55:11 +01:00
10 lines
316 B
Python
10 lines
316 B
Python
from __future__ import annotations
|
|
|
|
from aioesphomeapi.core import MESSAGE_TYPE_TO_PROTO
|
|
|
|
|
|
def test_order_and_no_missing_numbers_in_message_type_to_proto():
|
|
"""Test that MESSAGE_TYPE_TO_PROTO has no missing numbers."""
|
|
for idx, (k, v) in enumerate(MESSAGE_TYPE_TO_PROTO.items()):
|
|
assert idx + 1 == k
|