From ddfdf2f7f45dee9e2e4891a1bb5e3cb2b9b77cad Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 24 Feb 2015 19:01:30 +0200 Subject: [PATCH] config: add UT for bitrate verification --- tests/test_configs.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/test_configs.py diff --git a/tests/test_configs.py b/tests/test_configs.py new file mode 100644 index 0000000..7d5c0c1 --- /dev/null +++ b/tests/test_configs.py @@ -0,0 +1,6 @@ +from amodem import config + + +def test_bitrates(): + for rate, cfg in sorted(config.bitrates.items()): + assert rate * 1000 == cfg.modem_bps