mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-16 03:26:43 +01:00
add utf-8 encoding tests
This commit is contained in:
parent
10bc6959a3
commit
8ba4439305
9 changed files with 84 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue