From 36420059df3b112c76cc937573b56fe6c62d6238 Mon Sep 17 00:00:00 2001 From: Nick Daly Date: Sat, 12 May 2012 16:42:11 -0500 Subject: [PATCH] Document test design decisions. --- ugly_hacks/santiago/test_pgpprocessor.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ugly_hacks/santiago/test_pgpprocessor.py b/ugly_hacks/santiago/test_pgpprocessor.py index ac223e5a1..e63f7eae9 100644 --- a/ugly_hacks/santiago/test_pgpprocessor.py +++ b/ugly_hacks/santiago/test_pgpprocessor.py @@ -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