mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-12 12:26:04 +00:00
Document test design decisions.
This commit is contained in:
parent
8fb9d6cce1
commit
36420059df
@ -34,7 +34,7 @@ def load_config():
|
||||
|
||||
def multi_sign(message="hi", iterations=3, keyid=None, gpg=None):
|
||||
"""Sign a message several times with a specified key."""
|
||||
|
||||
|
||||
messages = [message]
|
||||
|
||||
if not gpg:
|
||||
@ -49,7 +49,14 @@ def multi_sign(message="hi", iterations=3, keyid=None, gpg=None):
|
||||
|
||||
|
||||
class MessageWrapper(unittest.TestCase):
|
||||
"""Basic setup for message-signing tests.
|
||||
|
||||
These tests would run much faster if I could use setUpClass (>30x faster:
|
||||
signing four messages for each test consumes lots of entropy that needs to
|
||||
be rebuilt?), but that's a Python 2.7 feature. I'll rewrite this when
|
||||
Debian Stable includes Python 2.7 or Python 3.X. It's much prettier.
|
||||
|
||||
"""
|
||||
def setUp(self):
|
||||
|
||||
self.iterations = 3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user