Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
diceware-debian
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
diceware-debian
Commits
bb53d836
Commit
bb53d836
authored
9 years ago
by
ulif
Browse files
Options
Downloads
Patches
Plain Diff
Make sure SPECIAL_CHARS are sane.
parent
5a84dac2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_diceware.py
+4
-0
4 additions, 0 deletions
tests/test_diceware.py
with
4 additions
and
0 deletions
tests/test_diceware.py
+
4
−
0
View file @
bb53d836
...
@@ -129,6 +129,10 @@ class TestDicewareModule(object):
...
@@ -129,6 +129,10 @@ class TestDicewareModule(object):
for
x
in
range
(
100
):
for
x
in
range
(
100
):
assert
insert_special_char
(
'
foo
'
)
in
expected_matrix
assert
insert_special_char
(
'
foo
'
)
in
expected_matrix
def
test_special_chars_do_not_quote
(
self
):
# backslashes in SPECIAL_CHAR do not hide away chars
assert
len
(
SPECIAL_CHARS
)
==
36
def
test_get_passphrase
(
self
):
def
test_get_passphrase
(
self
):
# we can get passphrases
# we can get passphrases
r1
=
get_passphrase
()
r1
=
get_passphrase
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment