Add test for service name byte string types
Marco Ricci

Marco Ricci commited on 2024-06-08 19:06:56
Zeige 1 geänderte Dateien mit 6 Einfügungen und 0 Löschungen.

... ...
@@ -31,6 +31,12 @@ def test_202_reproducibility_and_bytes_service_name():
31 31
         Vault(phrase=phrase).generate('google')
32 32
     )
33 33
 
34
+def test_203_reproducibility_and_bytearray_service_name():
35
+    assert (
36
+        Vault(phrase=phrase).generate(b'google') ==
37
+        Vault(phrase=phrase).generate(bytearray(b'google'))
38
+    )
39
+
34 40
 def test_210_nonstandard_length():
35 41
     assert Vault(phrase=phrase, length=4).generate('google') == b'xDFu'
36 42
 
37 43