27 lines
528 B
Python
27 lines
528 B
Python
"""
|
|
AuDaGe IEC tests
|
|
|
|
name: test_iec.py
|
|
by: Josh Lucas
|
|
date: 2026-09-14
|
|
|
|
desc: Unit tests for the AuDaGe IEC module.
|
|
"""
|
|
|
|
import unittest
|
|
|
|
from AuDaGe import iec
|
|
|
|
class TestIEC(unittest.TestCase):
|
|
""""""
|
|
|
|
def test_iec_definitions(self):
|
|
iec_definitions = iec.iec_definitions()
|
|
self.assertTrue(iec_definitions.is_valid())
|
|
self.assertEqual(
|
|
iec_definitions.shape,
|
|
(len(iec.DataTypes.__members__), 7)
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main(failfast=True) |