add utf-8 encoding tests

This commit is contained in:
scito
2022-12-19 22:01:08 +01:00
committed by Roland Kurmann
parent 10bc6959a3
commit 8ba4439305
9 changed files with 84 additions and 1 deletions

View File

@@ -73,6 +73,10 @@ class TestExtract(unittest.TestCase):
'Secret: 7KSQL2JTUDIS5EF65KLMRQIIGY',
'Type: hotp',
'Counter: 4',
'',
'Name: encoding: ¿äÄéÉ? (demo)',
'Secret: 7KSQL2JTUDIS5EF65KLMRQIIGY',
'Type: totp',
''
]
self.assertEqual(output, expected_output)
@@ -107,6 +111,10 @@ Secret: 7KSQL2JTUDIS5EF65KLMRQIIGY
Type: hotp
Counter: 4
Name: encoding: ¿äÄéÉ? (demo)
Secret: 7KSQL2JTUDIS5EF65KLMRQIIGY
Type: totp
'''
self.assertEqual(actual_output, expected_output)