changeset 590:8a79bf7ed805

Corrected number of blank lines between class definitions.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 20 Mar 2008 00:09:46 +0100
parents b1397f54a28c
children 80e49a760164
files viff/test/test_basic_runtime.py viff/test/test_runtime.py viff/test/test_runtime_comp.py
diffstat 3 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/viff/test/test_basic_runtime.py	Thu Mar 20 00:08:33 2008 +0100
+++ b/viff/test/test_basic_runtime.py	Thu Mar 20 00:09:46 2008 +0100
@@ -20,8 +20,8 @@
 from twisted.internet.defer import Deferred, gatherResults
 
 from viff.test.util import RuntimeTestCase, protocol
+from viff.runtime import increment_pc
 
-from viff.runtime import increment_pc
 
 class ProgramCounterTest(RuntimeTestCase):
     """Program counter tests."""
@@ -55,7 +55,6 @@
         runtime.xor(self.Zp(0), self.Zp(1))
         self.assertEquals(runtime.program_counter, [2])
 
-
     @protocol
     def test_callback(self, runtime):
         """Test a scheduled callback.
@@ -76,7 +75,6 @@
         # Now trigger verify_program_counter.
         d.callback(None)
 
-
     @protocol
     def test_nested_calls(self, runtime):
         """Test Runtime methods that call other methods.
--- a/viff/test/test_runtime.py	Thu Mar 20 00:08:33 2008 +0100
+++ b/viff/test/test_runtime.py	Thu Mar 20 00:09:46 2008 +0100
@@ -34,18 +34,21 @@
 from viff.field import GF256
 from viff.runtime import Share
 from viff.comparison import Toft05Runtime
+from viff.test.util import RuntimeTestCase, BinaryOperatorTestCase, protocol
 
-from viff.test.util import RuntimeTestCase, BinaryOperatorTestCase, protocol
 
 class AddTest(BinaryOperatorTestCase, RuntimeTestCase):
     operator = operator.add
 
+
 class SubTest(BinaryOperatorTestCase, RuntimeTestCase):
     operator = operator.sub
 
+
 class MulTest(BinaryOperatorTestCase, RuntimeTestCase):
     operator = operator.mul
 
+
 class XorTest(BinaryOperatorTestCase, RuntimeTestCase):
     a = 0
     b = 1
--- a/viff/test/test_runtime_comp.py	Thu Mar 20 00:08:33 2008 +0100
+++ b/viff/test/test_runtime_comp.py	Thu Mar 20 00:09:46 2008 +0100
@@ -24,18 +24,22 @@
 from viff.comparison import Toft05Runtime, Toft07Runtime
 from viff.test.util import RuntimeTestCase, BinaryOperatorTestCase
 
+
 class Toft05GreaterThanTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft05Runtime
     operator = operator.gt
 
+
 class Toft05GreaterThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft05Runtime
     operator = operator.ge
 
+
 class Toft05LessThanTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft05Runtime
     operator = operator.lt
 
+
 class Toft05LessThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft05Runtime
     operator = operator.le
@@ -45,14 +49,17 @@
     runtime_class = Toft07Runtime
     operator = operator.gt
 
+
 class Toft07GreaterThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft07Runtime
     operator = operator.ge
 
+
 class Toft07LessThanTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft07Runtime
     operator = operator.lt
 
+
 class Toft07LessThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft07Runtime
     operator = operator.le