fix test assertations

This commit is contained in:
Matthias 2021-12-29 15:34:03 +01:00
parent a745aa500e
commit b1188be019
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -259,17 +259,17 @@ class TestSerialNumberExtraction(TestCase):
sn = e("~", 1, 1) sn = e("~", 1, 1)
self.assertEqual(len(sn), 1) self.assertEqual(len(sn), 1)
self.assertEqual(sn, [1]) self.assertEqual(sn, ['1'])
sn = e("~", 1, 3) sn = e("~", 1, 3)
self.assertEqual(len(sn), 1) self.assertEqual(len(sn), 1)
self.assertEqual(sn, [3]) self.assertEqual(sn, ['3'])
sn = e("~+", 2, 5) sn = e("~+", 2, 5)
self.assertEqual(len(sn), 2) self.assertEqual(len(sn), 2)
self.assertEqual(sn, [5, 6]) self.assertEqual(sn, [5, 6])
sn = e("~+3", 2, 5) sn = e("~+3", 4, 5)
self.assertEqual(len(sn), 4) self.assertEqual(len(sn), 4)
self.assertEqual(sn, [5, 6, 7, 8]) self.assertEqual(sn, [5, 6, 7, 8])