changeset 589:b1397f54a28c

Fixed trailing whitespace, rewrapped a comment.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 20 Mar 2008 00:08:33 +0100
parents 7c14124ca29e
children 8a79bf7ed805
files viff/test/util.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/viff/test/util.py	Thu Mar 20 00:02:34 2008 +0100
+++ b/viff/test/util.py	Thu Mar 20 00:08:33 2008 +0100
@@ -41,6 +41,7 @@
 
     The three runtimes are connected by L{create_loopback_runtime}.
     """
+
     def wrapper(self):
 
         def shutdown_protocols(result, runtime):
@@ -85,7 +86,6 @@
     return wrapper
 
 
-
 class RuntimeTestCase(TestCase):
 
     #: Number of players to test.
@@ -94,14 +94,14 @@
     threshold = 1
     #: Default Runtime class to instantiate.
     runtime_class = Runtime
-    
+
     #: A dictionary mapping player ids to pseudorandom generators.
     #:
     #: The generators have all been seeded with the same seed, which
     #: is again obtained from the viff.util.rand generator. A unit
-    #: test should use these genrators when all players need to agree 
-    #: on the same randomness, e.g. to select the same random number or
-    #: to sample the same subsequence from a sequence.
+    #: test should use these genrators when all players need to agree
+    #: on the same randomness, e.g. to select the same random number
+    #: or to sample the same subsequence from a sequence.
     shared_rand = None
 
     def assert_type(self, var, wanted_type):
@@ -117,11 +117,11 @@
 
         configs = generate_configs(self.num_players, self.threshold)
         self.protocols = {}
-        
+
         # initialize the dictionary of random generators
         seed = rand.random()
-        self.shared_rand = dict([(player_id, Random(seed)) 
-                  for player_id in range(1,self.num_players + 1)])
+        self.shared_rand = dict([(player_id, Random(seed))
+                  for player_id in range(1, self.num_players + 1)])
 
         # This will be a list of Deferreds which will trigger when the
         # virtual connections between the players are closed.