Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
bdc563d8
Commit
bdc563d8
authored
Mar 24, 2018
by
Jelle van der Waa
🚧
Browse files
tests: Fix 8,20 key_id length test
parent
843c9a43
Changes
1
Hide whitespace changes
Inline
Side-by-side
main/tests/test_templatetags_pgp.py
View file @
bdc563d8
...
...
@@ -21,8 +21,8 @@ def test_format_key(self):
pgp_key_len
=
len
(
pgp_key
)
+
len
(
'0x'
)
self
.
assertEqual
(
pgp_key_len
,
len
(
format_key
(
pgp_key
)))
# 8
-
20 len case
pgp_key
=
'3E2C81117BFB1108D'
# 8
,
20 len case
pgp_key
=
'3E2C81117BFB1108D
EFF
'
pgp_key_len
=
len
(
pgp_key
)
+
len
(
'0x'
)
self
.
assertEqual
(
pgp_key_len
,
len
(
format_key
(
pgp_key
)))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment