add tests

This commit is contained in:
Junzi Sun
2020-11-14 22:05:48 +01:00
parent a3e5e7e141
commit f65ffd13f7
2 changed files with 35 additions and 0 deletions

13
tests/test_allcall.py Normal file
View File

@@ -0,0 +1,13 @@
from pyModeS import allcall
def test_icao():
assert allcall.icao("5D484FDEA248F5") == "484FDE"
def test_interrogator():
assert allcall.interrogator("5D484FDEA248F5") == 22
def test_capability():
assert allcall.capability("5D484FDEA248F5")[0] == 5