fix tox tests

This commit is contained in:
Hans Erik van Elburg
2020-12-24 01:52:17 +01:00
parent 5b1e830018
commit 81cccbd228
4 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -127,4 +127,4 @@ TELEGRAM_V5 = (
'0-2:24.1.0(003)\r\n'
'0-2:96.1.0()\r\n'
'!6EEE\r\n'
)
)
+1 -2
View File
@@ -241,7 +241,6 @@ class TelegramParserV5Test(unittest.TestCase):
def test_checksum_missing(self):
# Remove the checksum value causing a ParseError.
corrupted_telegram = TELEGRAM_V5.replace('!87B3\r\n', '')
corrupted_telegram = TELEGRAM_V5.replace('!6EEE\r\n', '')
with self.assertRaises(ParseError):
TelegramParser.validate_checksum(corrupted_telegram)