dcs-retribution/tests/test_sidc.py
Dan Albert 41158543cf Add basic implementation for APP-6 SIDCs.
These will be used in conjunction with
https://github.com/spatialillusions/milsymbol to simplify the
specification of unit type to the front-end.
2022-02-27 18:38:59 -08:00

18 lines
444 B
Python

from game.sidc import (
LandInstallationEntity,
StandardIdentity,
Status,
SymbolIdentificationCode,
SymbolSet,
)
def test_sidc() -> None:
sidc = SymbolIdentificationCode(
standard_identity=StandardIdentity.FRIEND,
symbol_set=SymbolSet.LAND_INSTALLATIONS,
status=Status.PRESENT_DAMAGED,
entity=LandInstallationEntity.AIPORT_AIR_BASE,
)
assert str(sidc) == "10032030001213010000"