diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-03-02 11:27:44 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-03-02 11:54:11 +0100 |
commit | 43eab70f6a22b62ce0577e929e09f1d68cea80a8 (patch) | |
tree | cf3c1dc1a6e59f7b5c2531b8b7786181574738b5 /ffi/lang/python/tests | |
parent | 18038d05d207ded98620d7ee0f7f3ca968642072 (diff) |
openpgp: Drop spaces from default string representation.
- Spaces in key ids and fingerprints make them awkward to copy and
pass as command line arguments. Change the default representation.
For the rare occasions that we expect users to manually verify
fingerprints, the previously introduced *::to_hex_pretty functions
can be used.
- Fixes #422.
Diffstat (limited to 'ffi/lang/python/tests')
-rw-r--r-- | ffi/lang/python/tests/test_fingerprint.py | 4 | ||||
-rw-r--r-- | ffi/lang/python/tests/test_keyid.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ffi/lang/python/tests/test_fingerprint.py b/ffi/lang/python/tests/test_fingerprint.py index a5470f29..85a505d0 100644 --- a/ffi/lang/python/tests/test_fingerprint.py +++ b/ffi/lang/python/tests/test_fingerprint.py @@ -6,12 +6,12 @@ pretty = "7DCA 58B5 4EB1 4316 9DDE E15F 247F 6DAB C849 14FE" def test_from_bytes(): f = Fingerprint.from_bytes(binary) - assert str(f) == pretty + assert str(f) == hexy assert f.hex() == hexy def test_from_hex(): f = Fingerprint.from_hex(hexy) - assert str(f) == pretty + assert str(f) == hexy assert f.hex() == hexy def test_to_keyid(): diff --git a/ffi/lang/python/tests/test_keyid.py b/ffi/lang/python/tests/test_keyid.py index 6cc95f9e..40c4ad8c 100644 --- a/ffi/lang/python/tests/test_keyid.py +++ b/ffi/lang/python/tests/test_keyid.py @@ -6,12 +6,12 @@ pretty = "247F 6DAB C849 14FE" def test_from_bytes(): k = KeyID.from_bytes(binary) - assert str(k) == pretty + assert str(k) == hexy assert k.hex() == hexy def test_from_hex(): k = KeyID.from_hex(hexy) - assert str(k) == pretty + assert str(k) == hexy assert k.hex() == hexy fp_hexy = "7DCA58B54EB143169DDEE15F247F6DABC84914FE" |