- Add __iter__ method to AliasEnum.
- Refactor get_data_length.
This commit is contained in:
@@ -29,7 +29,9 @@ class TestIEC(unittest.TestCase):
|
||||
("UNKNOWN_UDT", DataUnit.WORD, -1),
|
||||
]
|
||||
for data_type in data_types:
|
||||
self.assertEqual(get_data_length(data_type[0], data_type[1]), data_type[2])
|
||||
self.assertEqual(
|
||||
get_data_length(data_type[0], data_type[1]), data_type[2], data_type
|
||||
)
|
||||
|
||||
def test_iec_definitions(self):
|
||||
definitions = iec_definitions()
|
||||
|
||||
Reference in New Issue
Block a user