viff

changeset 648:e6cc20a96ac2

Test the new multiplication.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 05 Apr 2008 00:00:24 +0200
parents 5f643bb9c9fb
children 4bd7e5bf4f89
files viff/test/test_active_runtime.py
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/viff/test/test_active_runtime.py	Sat Apr 05 00:00:24 2008 +0200
     1.2 +++ b/viff/test/test_active_runtime.py	Sat Apr 05 00:00:24 2008 +0200
     1.3 @@ -15,12 +15,19 @@
     1.4  # You should have received a copy of the GNU Lesser General Public
     1.5  # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
     1.6  
     1.7 +import operator
     1.8 +
     1.9  from twisted.internet.defer import gatherResults
    1.10  
    1.11 -from viff.test.util import RuntimeTestCase, protocol
    1.12 +from viff.test.util import RuntimeTestCase, protocol, BinaryOperatorTestCase
    1.13  from viff.runtime import ActiveRuntime, Share
    1.14  
    1.15  
    1.16 +class MulTest(BinaryOperatorTestCase, RuntimeTestCase):
    1.17 +    operator = operator.mul
    1.18 +    runtime_class = ActiveRuntime
    1.19 +
    1.20 +
    1.21  class ActiveRuntimeTest(RuntimeTestCase):
    1.22      """Test for active security."""
    1.23