From eab90e7049791a969e1ea082c691a8d9d5074f47 Mon Sep 17 00:00:00 2001 From: Nigel Dokter Date: Sat, 11 Feb 2023 09:44:54 +0100 Subject: [PATCH] issue-51-telegram work in progress --- test/test_device.py | 23 ----------------------- test/test_telegram.py | 2 +- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 test/test_device.py diff --git a/test/test_device.py b/test/test_device.py deleted file mode 100644 index 2b3b73f..0000000 --- a/test/test_device.py +++ /dev/null @@ -1,23 +0,0 @@ -import unittest -import datetime -import pytz - -from dsmr_parser import telegram_specifications -from dsmr_parser import obis_name_mapping -from dsmr_parser import obis_references as obis -from dsmr_parser.objects import CosemObject, MbusDevice -from dsmr_parser.objects import MBusObject -from dsmr_parser.objects import ProfileGenericObject -from dsmr_parser.parsers import TelegramParser -from test.example_telegrams import TELEGRAM_V4_2, TELEGRAM_V5_TWO_MBUS -from decimal import Decimal - - -class DeviceObjectTest(unittest.TestCase): - - def test_tmp(self): - parser = TelegramParser(telegram_specifications.V5) - telegram = parser.parse(TELEGRAM_V5_TWO_MBUS) - # print('val: ', telegram.HOURLY_GAS_METER_READING) - - device = MbusDevice() diff --git a/test/test_telegram.py b/test/test_telegram.py index c289314..d65d5c1 100644 --- a/test/test_telegram.py +++ b/test/test_telegram.py @@ -336,7 +336,7 @@ class TelegramTest(unittest.TestCase): mbus_device_1 = mbus_devices[0] self.assertEqual(mbus_device_1.EQUIPMENT_IDENTIFIER_GAS.value, None) - print() + self.assertEqual(mbus_device_1.HOURLY_GAS_METER_READING.value, Decimal('0')) mbus_device_2 = mbus_devices[1]