summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-02-28 19:20:45 +0100
committerfixeria <vyanitskiy@sysmocom.de>2021-03-01 15:02:35 +0000
commit904d128c4ddd3121b779176e0943a4629ac9fdc1 (patch)
treec96de242173914914070d12c7449afadfeda0ecf
parent5c3c28cc1d67de401ad69d890b8b4f6b1f3479ff (diff)
trx_toolkit/data_msg.py: do not instantiate abstract class DATAMSG
-rw-r--r--src/target/trx_toolkit/test_data_msg.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/target/trx_toolkit/test_data_msg.py b/src/target/trx_toolkit/test_data_msg.py
index 62542031..8735b0cc 100644
--- a/src/target/trx_toolkit/test_data_msg.py
+++ b/src/target/trx_toolkit/test_data_msg.py
@@ -62,23 +62,23 @@ class DATAMSG_Test(unittest.TestCase):
def test_validate(self):
# Unknown version
with self.assertRaises(ValueError):
- msg = DATAMSG(fn = 0, tn = 0, ver = 100)
+ msg = DATAMSG_TRX2L1(fn = 0, tn = 0, ver = 100)
msg.validate()
# Uninitialized field
with self.assertRaises(ValueError):
- msg = DATAMSG()
+ msg = DATAMSG_TRX2L1()
msg.validate()
with self.assertRaises(ValueError):
- msg = DATAMSG(fn = None, tn = 0)
+ msg = DATAMSG_TRX2L1(fn = None, tn = 0)
msg.validate()
# Out-of-range value(s)
with self.assertRaises(ValueError):
- msg = DATAMSG(fn = -1, tn = 0)
+ msg = DATAMSG_TRX2L1(fn = -1, tn = 0)
msg.validate()
with self.assertRaises(ValueError):
- msg = DATAMSG(fn = 0, tn = 10)
+ msg = DATAMSG_TRX2L1(fn = 0, tn = 10)
msg.validate()
# Validate header and burst randomization