add tests for the missing elements and correct some test bugs

This commit is contained in:
Hans Erik van Elburg
2020-05-02 15:50:00 +02:00
parent 88c9ccd83d
commit c4331f6cd6
3 changed files with 305 additions and 6 deletions

View File

@@ -171,7 +171,7 @@ class TelegramParserV5Test(unittest.TestCase):
assert result[obis.TEXT_MESSAGE].value is None
# DEVICE_TYPE (0-x:24.1.0)
assert isinstance(result[obis.TEXT_MESSAGE], CosemObject)
assert isinstance(result[obis.DEVICE_TYPE], CosemObject)
assert result[obis.DEVICE_TYPE].unit is None
assert isinstance(result[obis.DEVICE_TYPE].value, int)
assert result[obis.DEVICE_TYPE].value == 3